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), '/');
PathBuilder builder = new PathBuilder();
for (int j = 0; j < elements.length; j++) {
if (elements[j].equals("*")) {
throw new IllegalNameException("* not supported in include-property");
}
builder.addLast(resolver.getQName(elements[j]));
}
includes.add(new PropertyInclude(builder.getPath()));
}
}
return (PropertyInclude[]) includes.toArray(new PropertyInclude[includes.size()]);
}