FacesContext facesContext = getFacesContext(request, wrappedResponse);
try {
windowState.restoreRequest(facesContext, true);
// If we're using RichFaces, setup proper parameters for this render
// request
if (RICHFACES_ENABLED) {
setupAjaxParams(facesContext, stateId.toString(), namespace);
}