super();
Validate.notNull(configuration, "Configuration object cannot be null");
final ICacheManager cacheManager = configuration.getCacheManager();
if (cacheManager == null) {
this.templateCache = null;
this.fragmentCache = null;
} else {
this.templateCache = cacheManager.getTemplateCache();
this.fragmentCache = cacheManager.getFragmentCache();
}
this.parsersByTemplateMode = new HashMap<String,ITemplateParser>(10, 1.0f);
for (final ITemplateModeHandler handler : configuration.getTemplateModeHandlers()) {
this.parsersByTemplateMode.put(handler.getTemplateModeName(), handler.getTemplateParser());