private void autoCreateItemsFor( JcrNodeType nodeType )
throws InvalidItemStateException, ConstraintViolationException, AccessDeniedException, RepositoryException {
MutableCachedNode node = mutable();
SessionCache cache = sessionCache();
if (nodeType.hasPropertyDefinitions()) {
for (JcrPropertyDefinition propDefn : nodeType.allPropertyDefinitions()) {
if (propDefn.isAutoCreated() && !propDefn.isProtected()) {
Name propName = propDefn.getInternalName();
Property autoCreatedProp = node.getProperty(propName, cache);