HttpServletRequest request = (HttpServletRequest) context.getProperties().get(DefaultJersey.REQUEST);
request.setAttribute(METHOD_TO_EXECUTE, method);
request.setAttribute(RESOURCE_TO_USE, resource);
request.setAttribute(DISPATCHER, this);
request.setAttribute(HTTP_CONTEXT, context);
InterceptorStack stack = (InterceptorStack) request.getAttribute(DefaultJersey.INTERCEPTOR_STACK);
stack.next(this, resource);
}