ServletContext servletContext = ( ServletContext ) externalContext.getContext();
if ( fbb != null )
{
HttpServletResponse httpResponse = ( HttpServletResponse ) externalContext.getResponse();
fbb.restore( httpRequest, httpResponse, servletContext );
}
else
{
InternalUtils.removeCurrentFacesBackingBean( httpRequest, servletContext );
}