AttributeValueFreemarkerServlet servlet = new AttributeValueFreemarkerServlet();
try {
servlet.init(new InitParamsServletConfig(params, applicationContext));
return new FreemarkerRenderer(servlet);
} catch (ServletException e) {
throw new FreemarkerRequestException(
"Cannot initialize internal servlet", e);
}
}