if (getSession().nodeExists(sr)) {
try {
Node root = getSession().getNode(sr);
Set<Node> matchSet = new HashSet<Node>();
collectNodes(value, propertyNames, ntName, root.getNodes(), matchSet, exact, maxSize);
return new NodeIteratorAdapter(matchSet);
} catch (PathNotFoundException e) {
// should not get here
log.warn("Error while retrieving node " + sr);
}
} // else: searchRoot does not exist yet -> omit the search