try {
return getNode(parentId, sessionInfo);
} catch (PathNotFoundException e) {
// if the parent of an batch operation is not available, this indicates
// that it has been destroyed by another session.
throw new InvalidItemStateException(e);
} catch (ItemNotFoundException e) {
// if the parent of an batch operation is not available, this indicates
// that it has been destroyed by another session.
throw new InvalidItemStateException(e);
}
}