* @param nodes the expected nodes in the result set.
* @throws RepositoryException if an error occurs while reading from the result.
*/
protected void checkResult(RowIterator result, Node[] nodes)
throws RepositoryException {
checkResult(new NodeIteratorAdapter(result) {
public Object next() throws NoSuchElementException {
Row next = (Row) super.next();
try {
return superuser.getItem(next.getValue("jcr:path").getString());
} catch (RepositoryException e) {