assert currentParent != null;
// Get our parent's child references to find which one points to us ...
ChildReferences currentReferences = currentParent.getChildReferences(cache);
ChildReference parentRefToMe = null;
if (currentReferences.supportsGetChildReferenceByKey()) {
// Just using the node key is faster if it is supported by the implementation ...
parentRefToMe = currentReferences.getChild(key);
} else {
// Directly look up the ChildReference by going to the cache (and possibly connector) ...
NodeKey parentKey = getParentKey(cache);