// We still were NOT able to find a definition that allows SNS for this name WITHOUT considering the
// specific child node type. This likely means there is either 0 or more than 1 (possibly residual)
// child node definitions. We need to find all of the added/renamed child nodes and use their specific
// primary types. The first to fail will result in an exception ...
final SessionCache session = cache();
for (NodeKey appendedOrRenamedKey : appendedOrRenamedChildrenByName.get(childName)) {
MutableCachedNode appendedOrRenamedChild = session.mutable(appendedOrRenamedKey);
if (appendedOrRenamedChild == null) continue;
Name childPrimaryType = appendedOrRenamedChild.getPrimaryType(session);
childDefns = nodeTypeCapabilities.findChildNodeDefinitions(primaryType, mixinTypes);
childNodeDefinition = childDefns.findBestDefinitionForChild(childName, childPrimaryType, true,
siblingCounter);