Node parentNode = session.getNode(parentPath);
NodeIterator childIter = parentNode.getNodes();
// Get the first iterator that starts at the 'nth' child (each thread starts at a different child) ...
long numChildren = childIter.getSize();
long offset = getOffset(numChildren);
childIter.skip(offset);
// Modify a set of children ...
int childrenToUpdate = Math.min(this.childrenToUpdate, (int)numChildren);
for (int i = 0; i != childrenToUpdate; ++i) {
childIter = validateIterator(childIter, parentNode);
Node child = childIter.nextNode();