private void notifyAfter(FacesContext context,Lifecycle lifecycle){
  UIViewRoot viewRoot=context.getViewRoot();
  if (null == viewRoot) {
    return;
  }
  MethodExpression afterPhase=viewRoot.getAfterPhaseListener();
  if (null != afterPhase) {
    try {
      PhaseEvent event=new PhaseEvent(context,PhaseId.RESTORE_VIEW,lifecycle);
      afterPhase.invoke(context.getELContext(),new Object[]{event});
    }
 catch (    Exception e) {
      if (LOGGER.isLoggable(Level.SEVERE)) {
        LOGGER.log(Level.SEVERE,"severe.component.unable_to_process_expression",new Object[]{afterPhase.getExpressionString(),("afterPhase")});
      }
      return;
    }
  }
}

private void notifyAfter ( FacesContext context , Lifecycle lifecycle ) { UIViewRoot viewRoot = context . getViewRoot ( ) ; if ( null == viewRoot ) { return ; } MethodExpression afterPhase = viewRoot . getAfterPhaseListener ( ) ; if ( null != afterPhase ) { try { PhaseEvent event = new PhaseEvent ( context , PhaseId . RESTORE_VIEW , lifecycle ) ; afterPhase . invoke ( context . getELContext ( ) , new Object [ ] { event } ) ; } catch ( Exception e ) { if ( LOGGER . isLoggable ( Level . SEVERE ) ) { LOGGER . log ( Level . SEVERE , "severe.component.unable_to_process_expression" , new Object [ ] { afterPhase . getExpressionString ( ) , ( "afterPhase" ) } ) ; } return ; } } }
notify afterphase listener that is registered on the view root .
