code: private Lifecycle _getLifecycle(FacesContext facesContext)
      {
          LifecycleFactory factory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
          String id = facesContext.getExternalContext().getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR);
          if (id == null)
          {
              id = LifecycleFactory.DEFAULT_LIFECYCLE;
          }
          return factory.getLifecycle(id);  
      }
docs: Gets the current Lifecycle instance from the LifecycleFactory
  @param facesContext
  @return