code: public List<PreferenceType<PortletPreferencesType<T>>> getAllPreference()
     {
        List<PreferenceType<PortletPreferencesType<T>>> list = new ArrayList<PreferenceType<PortletPreferencesType<T>>>();
        List<Node> nodeList = childNode.get("preference");
        for(Node node: nodeList)
        {
           PreferenceType<PortletPreferencesType<T>>  type = new PreferenceTypeImpl<PortletPreferencesType<T>>(this, "preference", childNode, node);
           list.add(type);
        }
        return list;
     }
docs: Returns all <code>preference</code> elements
  @return list of <code>preference</code>