protected Configuration freemarkerConfig ( ) { if ( fmConfig == null ) { fmConfig = new Configuration ( Configuration . VERSION_2_3_26 ) ; fmConfig . setClassLoaderForTemplateLoading ( contentLoader , contentPath ) ; fmConfig . setDefaultEncoding ( "utf-8" ) ; fmConfig . setTemplateExceptionHandler ( TemplateExceptionHandler . RETHROW_HANDLER ) ; fmConfig . setLogTemplateExceptions ( false ) ; } return fmConfig ; }
Creates the configuration for freemarker template processing .