throw new RepositoryException(msg, ise);
}
NodeDef conflictingTargetDef =
ntReg.getNodeDef(conflictingState.getDefinitionId());
// check same-name sibling setting of both target and existing node
if (!conflictingTargetDef.allowsSameNameSiblings()
|| !newNodeDef.allowsSameNameSiblings()) {
throw new ItemExistsException("cannot add child node '"
+ nodeName.getLocalName() + "' to "
+ safeGetJCRPath(parentState.getNodeId())
+ ": colliding with same-named existing node");