code: private PlainChangesLog makeAutoCreatedItems(final NodeData parent, final InternalQName nodeTypeName,
        final ItemDataConsumer targetDataManager, final String owner, boolean addedAutoCreatedNodes)
        throws RepositoryException
     {
        final PlainChangesLogImpl changes = new PlainChangesLogImpl();
        final NodeTypeData type = nodeTypeDataManager.getNodeType(nodeTypeName);
  
        changes.addAll(makeAutoCreatedProperties(parent, nodeTypeName,
           nodeTypeDataManager.getAllPropertyDefinitions(nodeTypeName), targetDataManager, owner).getAllStates());
        // Add autocreated child nodes
        changes.addAll(makeAutoCreatedNodes(parent, nodeTypeName,
           nodeTypeDataManager.getAllChildNodeDefinitions(nodeTypeName), targetDataManager, owner).getAllStates());
  
        // versionable
        if (nodeTypeDataManager.isNodeType(Constants.MIX_VERSIONABLE, new InternalQName[]{type.getName()}))
        {
           // using VH helper as for one new VH, all changes in changes log
           changes.addAll(makeMixVesionableChanges(parent).getAllStates());
        }
        return changes;
     }
docs: Prepares changes log