siblingCounter);
if (childDefn == null) {
// Failed to find an appropriate child node definition. Throw an exception with the appropriate message...
String repoName = session.repository().repositoryName();
String workspaceName = workspaceName();
childDefns.determineReasonForMismatch(childName, childPrimaryNodeTypeName, skipProtected, siblingCounter,
primaryTypeName, mixins, path(), workspaceName, repoName, context());
}
assert childDefn != null;
if (childPrimaryNodeTypeName == null && childDefn.getDefaultPrimaryType() == null) {