prevApplication = Application.get();
}
Application.set(webApplication);
ServletContext context = webApplication.getServletContext();
MockHttpSession httpSession = new MockHttpSession(context);
MockServletRequest servletRequest = new MockServletRequest(webApplication, httpSession, context);
callback.configure(new MockRequest(servletRequest));
servletRequest.setDefaultHeaders();