public void changeNodeName(AWorkspaceTreeNode node, String newName) throws WorkspaceModelException {
String oldName = node.getName();
node.setName(newName);
if (this.hashStringKeyIndex.containsKey(node.getKey())) {
node.setName(oldName);
throw new WorkspaceModelException("A Node with the name '" + newName + "' already exists.");
}
node.setName(oldName);
removeIndexOnlyRecursively(node);
node.setName(newName);
addIndexOnlyRecursively(node);