}
AbstractNode[] deletesNodes = business.deleteNode(node, view);
graphVersion.incNodeAndEdgeVersion();
dhns.writeUnlock();
for (int i = 0; i < deletesNodes.length; i++) {
dhns.getEventManager().fireEvent(new NodeEvent(EventType.REMOVE_NODES, deletesNodes[i], view));
}
} else {
dhns.writeLock();
AbstractNode[] deletesNodes = business.deleteNode(node, view);
graphVersion.incNodeAndEdgeVersion();
dhns.writeUnlock();
for (int i = 0; i < deletesNodes.length; i++) {
dhns.getEventManager().fireEvent(new NodeEvent(EventType.REMOVE_NODES, deletesNodes[i], view));
}
}
}