code: private boolean shouldProcessPhase(final PhaseListener listener, final PhaseEvent event) {
          return (PhaseId.ANY_PHASE.equals(listener.getPhaseId()) || event.getPhaseId().equals(listener.getPhaseId()));
      }
docs: Determine if the {@link PhaseListener} should process the given {@link PhaseEvent}.