}
protected JellyContext createContext() {
JellyContext context = new JellyContext();
log.debug("Preparing jelly context: " + context);
HttpServletRequest request = ToxicityRequestFilter.getCurrentRequest();
ServletContext servletContext = ToxicityRequestFilter.getCurrentServletContext();
VariableManagerHelper mgr = new VariableManagerHelper(request, request.getSession(false), servletContext);
mgr.initObject(context, new VariableManagerHelper.VariableSetter() {
public void setVariable(Object obj, String attrName, Object attrValue) {
JellyContext ctx = (JellyContext)obj;
ctx.setVariable(attrName, attrValue);
}
});
return context;
}