for (final DeferredOperation deferredOperation : operations) {
PhaseOperation<?> operation = deferredOperation.getOperation();
if (operation.getBeforePhases().contains(event.getPhaseId())
|| operation.getBeforePhases().contains(PhaseId.ANY_PHASE))
{
Flow flow = handlePhaseOperation(deferredOperation);
if (flow.is(ServletRewriteFlow.ABORT_REQUEST))
{
event.getFacesContext().responseComplete();
}
if (flow.is(ServletRewriteFlow.HANDLED))
{
break;
}
}
}