code: public CustomPortletModeType<PortletAppType<T>> getOrCreateCustomPortletMode()
     {
        List<Node> nodeList = childNode.get("custom-portlet-mode");
        if (nodeList != null &&  nodeList.size() > 0)
        {
           return new CustomPortletModeTypeImpl<PortletAppType<T>>(this, "custom-portlet-mode", childNode, nodeList.get(0));
        }
        return createCustomPortletMode();
     }
docs: If not already created, a new <code>custom-portlet-mode</code> element will be created and returned.
  Otherwise, the first existing <code>custom-portlet-mode</code> element will be returned.
  @return the instance defined for the element <code>custom-portlet-mode</code>