NodeData removeNodeTypeData =
(NodeData)dataManager.getItemData(nodeTypeStorageRoot, new QPathEntry(nodeTypeData.getName(), 1),
ItemType.NODE);
if (removeNodeTypeData != null)
{
ItemDataRemoveVisitor removeVisitor =
new ItemDataRemoveVisitor(dataManager, nodeTypeStorageRoot.getQPath());
removeNodeTypeData.accept(removeVisitor);
changesLog.addAll(removeVisitor.getRemovedStates());
}
// add
definitionAccessProvider.write(changesLog, nodeTypeStorageRoot, nodeTypeData);
if (observer != null)
{