private NodeIterator collectNodes(String value, Set<Name> props, Name ntName,
NodeIterator nodes, boolean exact,
long maxSize) {
Set<Node> matchSet = new HashSet<Node>();
collectNodes(value, props, ntName, nodes, matchSet, exact, maxSize);
return new NodeIteratorAdapter(matchSet);
}