private static final Logger LOG = LoggerFactory.getLogger(BundleFreemarkerManager.class);
@Override
protected TemplateLoader getTemplateLoader(ServletContext servletContext) {
// construct a FileTemplateLoader for the init-param 'TemplatePath'
FileTemplateLoader templatePathLoader = null;
String templatePath = servletContext.getInitParameter("TemplatePath");
if (templatePath == null) {
templatePath = servletContext.getInitParameter("templatePath");
}
if (templatePath != null) {
try {
templatePathLoader = new FileTemplateLoader(new File(templatePath));
} catch (IOException e) {
if (LOG.isErrorEnabled())
LOG.error("Invalid template path specified: [#0]", e, e.getMessage());
}
}