if (logger.isDebugEnabled()) {
logger.debug("[THYMELEAF][{}] Finished process on template \"{}\" using mode \"{}\"",
new Object[] { TemplateEngine.threadIndex(), templateName, templateMode });
}
final ITemplateModeHandler templateModeHandler =
this.configuration.getTemplateModeHandler(templateMode);
final ITemplateWriter templateWriter = templateModeHandler.getTemplateWriter();
if (templateWriter == null) {
throw new ConfigurationException(
"No template writer defined for template mode \"" + templateMode + "\"");
}