List<NodeType> list = Lists.newArrayList();
for (NodeTypeDefinition ntd : ntds) {
list.add(internalRegister(types, ntd, allowUpdate));
}
root.commit(DefaultConflictHandler.OURS);
return new NodeTypeIteratorAdapter(list);
} catch (CommitFailedException e) {
throw new RepositoryException(e);
}
}