public FacesConfigLifecycleType<WebFacesConfigDescriptor> getOrCreateLifecycle()
   {
      List<Node> nodeList = model.get("lifecycle");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new FacesConfigLifecycleTypeImpl<WebFacesConfigDescriptor>(this, "lifecycle", model, nodeList.get(0));
      }
      return createLifecycle();
   }
public FacesConfigLifecycleType < WebFacesConfigDescriptor > getOrCreateLifecycle ( ) { List < Node > nodeList = model . get ( "lifecycle" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new FacesConfigLifecycleTypeImpl < WebFacesConfigDescriptor > ( this , "lifecycle" , model , nodeList . get ( 0 ) ) ; } return createLifecycle ( ) ; }
If not already created, a new <code>lifecycle</code> element will be created and returned.
Otherwise, the first existing <code>lifecycle</code> element will be returned.
@return the instance defined for the element <code>lifecycle</code>