protected WebContext getContext(ActionMapping mapping,
HttpServletRequest request, HttpServletResponse response) {
String contextId = mapping.getParameter();
HttpSession session = request.getSession();
WebContext context = (WebContext)
session.getAttribute(contextId);
if (context == null) {
if (doDebugLog())
servlet.log("{" + session.getId() + "} Creating new Context");
context = new WebContext();
// context.setActivity(getActivity(contextId));
context.setActivity(activity);
context.setHttpSession(session);
context.setServletContext(servlet.getServletContext());
if (doDebugListener())
context.addContextListener(this);
session.setAttribute(contextId, context);
context.call(context.getActivity());
}
return context;
}