code: public void addNodeTypes(List<NodeTypeData> nodeTypes) throws RepositoryException
     {
        if (!validatate())
        {
           return;
        }
  
        PlainChangesLog changesLog = new PlainChangesLogImpl();
        for (NodeTypeData nodeTypeData : nodeTypes)
        {
           definitionAccessProvider.write(changesLog, nodeTypeStorageRoot, nodeTypeData);
        }
  
        dataManager.save(new TransactionChangesLog(changesLog));
  
     }
docs: {@inheritDoc}