code: private PropertyInclude[] getPropertyIncludes(Node config) throws IllegalNameException, RepositoryException
     {
        List<PropertyInclude> includes = new ArrayList<PropertyInclude>();
        NodeList childNodes = config.getChildNodes();
        for (int i = 0; i < childNodes.getLength(); i++)
        {
           Node n = childNodes.item(i);
           if (n.getNodeName().equals("include-property"))
           {
              String[] elements = Text.explode(getTextContent(n), '/');
  
              QPathEntry[] path = new QPathEntry[elements.length];
              for (int j = 0; j < elements.length; j++)
              {
                 if (elements[j].equals("*"))
                 {
                    throw new IllegalNameException("* not supported in include-property");
                 }
  
                 path[j] = new QPathEntry(resolver.parseJCRName(elements[j]).getInternalName(), 1);
              }
              includes.add(new PropertyInclude(new QPath(path)));
           }
        }
        return (PropertyInclude[])includes.toArray(new PropertyInclude[includes.size()]);
     }
docs: Creates property includes defined in the <code>config</code>.
  
  @param config the indexing aggregate configuration.
  @return the property includes defined in the <code>config</code>.
  @throws MalformedPathException if a path in the configuration is
  malformed.
  @throws IllegalNameException   if the node type name contains illegal
  characters.
  @throws RepositoryException