// Assuming locality of the itemInfos, we keep an estimate of a parent entry.
// This reduces the part of the hierarchy to traverse. For large batches this
// optimization results in about 25% speed up.
NodeEntry approxParentEntry = nodeState.getNodeEntry();
while (infos.hasNext()) {
ItemInfo info = infos.next();
if (info.denotesNode()) {
approxParentEntry = createDeepNodeState((NodeInfo) info, approxParentEntry, infos).getNodeEntry();
} else {
createDeepPropertyState((PropertyInfo) info, approxParentEntry, infos);
}
}