code: public List<CustomWindowStateType<PortletDescriptor>> getAllCustomWindowState()
     {
        List<CustomWindowStateType<PortletDescriptor>> list = new ArrayList<CustomWindowStateType<PortletDescriptor>>();
        List<Node> nodeList = model.get("custom-window-state");
        for(Node node: nodeList)
        {
           CustomWindowStateType<PortletDescriptor>  type = new CustomWindowStateTypeImpl<PortletDescriptor>(this, "custom-window-state", model, node);
           list.add(type);
        }
        return list;
     }
docs: Returns all <code>custom-window-state</code> elements
  @return list of <code>custom-window-state</code>