code: public ResourceRefType<ApplicationType<T>> getOrCreateResourceRef()
     {
        List<Node> nodeList = childNode.get("resource-ref");
        if (nodeList != null &&  nodeList.size() > 0)
        {
           return new ResourceRefTypeImpl<ApplicationType<T>>(this, "resource-ref", childNode, nodeList.get(0));
        }
        return createResourceRef();
     }
docs: If not already created, a new <code>resource-ref</code> element will be created and returned.
  Otherwise, the first existing <code>resource-ref</code> element will be returned.
  @return the instance defined for the element <code>resource-ref</code>