code: public FacesConfigFactoryType<WebFacesConfigDescriptor> getOrCreateFactory()
     {
        List<Node> nodeList = model.get("factory");
        if (nodeList != null &&  nodeList.size() > 0)
        {
           return new FacesConfigFactoryTypeImpl<WebFacesConfigDescriptor>(this, "factory", model, nodeList.get(0));
        }
        return createFactory();
     }
docs: If not already created, a new <code>factory</code> element will be created and returned.
  Otherwise, the first existing <code>factory</code> element will be returned.
  @return the instance defined for the element <code>factory</code>