protected void onRender(Node content, RenderableDefinition definition,RenderingContext renderingCtx, Map<String, Object> ctx, String templateScript) throws RenderException {
Map<String, Object> vars = new HashMap<String, Object>(ctx);
vars.put("content", content);
vars.put("renderingContext",renderingCtx);
vars.put("cmsfn", new JspTemplatingFunction());
final HttpServletRequest request = MgnlContext.getWebContext().getRequest();
final HttpServletResponse response = MgnlContext.getWebContext().getResponse();
// setup spring request context in spring web context