Collection<DataNodeDescriptor> matchingNode = dataChannelDescriptor
.getNodeDescriptors();
Iterator<DataNodeDescriptor> it = matchingNode.iterator();
while (it.hasNext()) {
DataNodeDescriptor node = it.next();
if (node.getName().equals(newName)) {
// there is an entity with the same name
throw new ValidationException("There is another DataNode named '"
+ newName
+ "'. Use a different name.");
}