code: private boolean isFirstRequestProcessed()
      {
          FacesContext context = FacesContext.getCurrentInstance();
          
          //if firstRequestProcessed is not set, check the application map
          if(!_firstRequestProcessed && context != null 
                  && Boolean.TRUE.equals(context.getExternalContext().getApplicationMap()
                          .containsKey(LifecycleImpl.FIRST_REQUEST_PROCESSED_PARAM)))
          {
              _firstRequestProcessed = true;
          }
          return _firstRequestProcessed;
      }
docs: Method to handle determining if the first request has
  been handled by the associated LifecycleImpl.
  @return true if the first request has already been processed, false otherwise