BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
PortletContainer portletContainer = bridgeContext.getPortletContainer();
PhaseId phaseId = portletContainer.getPhaseId();
if ((phaseId != null) && ((phaseId == PhaseId.ANY_PHASE) || (phaseId == phaseEvent.getPhaseId()))) {
portletContainer.beforePhase(phaseEvent);
}
}
public PhaseId getPhaseId() {
return PhaseId.ANY_PHASE;