public ITemplateEngine newTemplateEngine(String templateEngineType)
throws UnsupportedTemplateEngine {
ITemplateEngine templateEngine = (ITemplateEngine)
applicationContext.getBean(templateEngineType);
if (templateEngine == null)
throw new UnsupportedTemplateEngine(templateEngineType);
return templateEngine;
}