// these ones are FreeMarker specific and will only work in FTL templates, mainly here for backward compatibility
BeansWrapper wrapper = BeansWrapper.getDefaultInstance();
context.put("sessionAttributes", new HttpSessionHashModel(session, wrapper));
context.put("requestAttributes", new HttpRequestHashModel(request, wrapper));
TaglibFactory JspTaglibs = new TaglibFactory(servletContext);
context.put("JspTaglibs", JspTaglibs);
context.put("requestParameters", UtilHttp.getParameterMap(request));
// this is a dummy object to stand-in for the JPublish page object for backward compatibility
context.put("page", FastMap.newInstance());