code: public void addPhaseListener(PhaseListener phaseListener)
      {
          if (phaseListener == null)
          {
              throw new NullPointerException("phaseListener");
          }
          
          getStateHelper().add(PropertyKeys.phaseListeners, phaseListener);
      }
docs: Adds a The phaseListeners attached to ViewRoot.