* Constructs a Faces context broker from the current HTTP request.
* @param request the HTTP request
* @param response the HTTP response
*/
public FacesContextBroker(HttpServletRequest request, HttpServletResponse response) {
FacesContextFactory contextFactory = (FacesContextFactory)FactoryFinder.getFactory(FactoryFinder.FACES_CONTEXT_FACTORY);
LifecycleFactory lifecycleFactory = (LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);
ServletContext servletContext = ((HttpServletRequest)request).getSession().getServletContext();
FacesContext fc = contextFactory.getFacesContext(servletContext, request, response, lifecycle);
InnerFacesContext.setFacesContextAsCurrentInstance(fc);
UIViewRoot view = fc.getApplication().getViewHandler().createView(fc,"/gptInnerFacesContext");
fc.setViewRoot(view);
}