throw new NullPointerException("FacesContext is null");
}
//refresh all configuration information if according web-xml parameter is set.
WebXml.update(facesContext.getExternalContext());
new FacesConfigurator(facesContext.getExternalContext()).update();
PhaseListenerManager phaseListenerMgr = new PhaseListenerManager(this, facesContext, getPhaseListeners());
for(int executorIndex = 0;executorIndex < lifecycleExecutors.length;executorIndex++) {
if(executePhase(facesContext, lifecycleExecutors[executorIndex], phaseListenerMgr)) {
return;