private void afterDispatch(GeronimoStandardContext webContext, ServletRequest request, ServletResponse response) {
BeforeAfter beforeAfter = webContext.getBeforeAfter();
if (beforeAfter != null) {
Stack<BeforeAfterContext> stack = currentContext.get();
BeforeAfterContext beforeAfterContext = stack.pop();
beforeAfter.after(beforeAfterContext, request, response, BeforeAfter.DISPATCHED);
JACCRealm.setRequestWrapperName((String) beforeAfterContext.contexts[webContext.getContextCount()]);
PolicyContext.setContextID((String) beforeAfterContext.contexts[webContext.getContextCount() + 1]);