package org.mamute.template;

import java.io.File;
import javax.inject.Inject;
import javax.inject.Named;
import javax.servlet.ServletContext;

/**
 * @author felipeweb
 *
 */
@Named("templateFinder")
public class CustomTemplatesFinder {
	protected static final String CUSTOM_TEMPLATE_URI = "/WEB-INF/jsp/theme/custom/";
	protected static final String EXTENSION = ".jspf";
	private File customTemplate;
	@Inject
	private ServletContext application;

	public boolean fileFinder(String fileName) {
		customTemplate = new File(application.getRealPath(CUSTOM_TEMPLATE_URI
				+ fileName + EXTENSION));
		if (customTemplate.exists()) {
			return true;
		}
		return false;
	}
}

@@ -463,18 +463,14 @@
 ean 
-fileFinder
+exists
 (Str

Update CustomTemplatesFinder.java