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