/** * The implementation must call this method at the earliest possble point in time after entering * into a new phase in the request processing lifecycle. * * @param currentPhaseId The {@link javax.faces.event.PhaseId} for the current phase. * @throws IllegalStateException if this method is called after this instance has been released * @since 2.0 */ public void setCurrentPhaseId(PhaseId currentPhaseId) { if (defaultFacesContext != null) { defaultFacesContext.setCurrentPhaseId(currentPhaseId); } else { throw new UnsupportedOperationException(); } }