{
ResteasyProviderFactory.pushContext(HttpRequest.class, request);
ResteasyProviderFactory.pushContext(HttpResponse.class, response);
ResteasyProviderFactory.pushContext(HttpHeaders.class, request.getHttpHeaders());
ResteasyProviderFactory.pushContext(UriInfo.class, request.getUri());
ResteasyProviderFactory.pushContext(Request.class, new RequestImpl(request));
ResteasyProviderFactory.pushContext(Providers.class, providerFactory);
ResteasyProviderFactory.pushContext(Registry.class, registry);
ResteasyProviderFactory.pushContext(Dispatcher.class, this);
ResteasyProviderFactory.pushContext(InternalDispatcher.class, InternalDispatcher.getInstance());