SpringTemplateEngine templateEngine = new SpringTemplateEngine();
Set<TemplateResolver> templateResolvers = new java.util.HashSet<TemplateResolver>();
templateResolvers.add(webTemplateResolver());
templateEngine.setTemplateResolvers(templateResolvers);
Set<IDialect> additionalDialects = new HashSet<IDialect>();
additionalDialects.add(new TilesDialect());
templateEngine.setAdditionalDialects(additionalDialects);
return templateEngine;
}