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