definition.getName() != null ? definition.getName() : Constants.JCR_ANY_NAME)
.getAsString();
NodeType defType =
definition.getDefaultPrimaryType() != null ? nodeTypeManager.findNodeType(definition
.getDefaultPrimaryType()) : null;
NodeType declaringNodeType = nodeTypeManager.findNodeType(definition.getDeclaringNodeType());
nodeDefinition =
new NodeDefinitionImpl(name, declaringNodeType, rnts, defType, definition.isAutoCreated(),
definition.isMandatory(), definition.getOnParentVersion(), definition.isProtected(),
definition.isAllowsSameNameSiblings());
}