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