safeGetJCRPath(parentState.getNodeId())
+ ": cannot add child node to protected parent node");
}
// make sure there's an applicable definition for new child node
EffectiveNodeType entParent = getEffectiveNodeType(parentState);
entParent.checkAddNodeConstraints(nodeName, nodeTypeName, ntReg);
QNodeDefinition newNodeDef =
findApplicableNodeDefinition(nodeName, nodeTypeName,
parentState);
// check for name collisions