// Check insertion capability
if (parentNode.hasNode(relPath)) {
String msg = "Attempt to insert context " + childCtx + " as an existing child with name " + relPath + " child of context " + parentCtx;
log.error(msg);
throw new DuplicateNameException(msg);
}
//
NodeDef nodeDef = childCtx.mapper.getNodeDef();
log.trace("Setting context {} for insertion", childCtx);