code: public List<CustomPortletModeType<PortletAppType<T>>> getAllCustomPortletMode()
     {
        List<CustomPortletModeType<PortletAppType<T>>> list = new ArrayList<CustomPortletModeType<PortletAppType<T>>>();
        List<Node> nodeList = childNode.get("custom-portlet-mode");
        for(Node node: nodeList)
        {
           CustomPortletModeType<PortletAppType<T>>  type = new CustomPortletModeTypeImpl<PortletAppType<T>>(this, "custom-portlet-mode", childNode, node);
           list.add(type);
        }
        return list;
     }
docs: Returns all <code>custom-portlet-mode</code> elements
  @return list of <code>custom-portlet-mode</code>