// save stuff on attributes
setAttribute(HttpServletRequest.class, servletRequest);
// note that a HttpServlet*Wrapper is needed for injection of
// singletons that had a @Context HttpServlet*; see [WINK-73]
setAttribute(HttpServletRequestWrapper.class, new HttpServletRequestWrapper(servletRequest));
HttpServletResponseWrapper responseWrapper =
new WrappedResponse(servletRequest, servletResponse, configuration.getMediaTypeMapper());
setAttribute(HttpServletResponse.class, responseWrapper);
setAttribute(HttpServletResponseWrapper.class, responseWrapper);
setAttribute(ServletContext.class, configuration.getServletContext());