}
}
private void beforeDispatch(GeronimoStandardContext webContext, ServletRequest request, ServletResponse response) {
BeforeAfter beforeAfter = webContext.getBeforeAfter();
if (beforeAfter != null) {
Stack<Object[]> stack = currentContext.get();
Object context[] = new Object[webContext.getContextCount() + 2];
String wrapperName = getWrapperName(request, webContext);
context[webContext.getContextCount()] = JACCRealm.setRequestWrapperName(wrapperName);
context[webContext.getContextCount() + 1] = PolicyContext.getContextID();
PolicyContext.setContextID(webContext.getPolicyContextId());
beforeAfter.before(context, request, response, BeforeAfter.DISPATCHED);
stack.push(context);
}
}