private void deleteNodeConnections(DiagramNodePart nodePart)
{
Element nodeElement = nodePart.getLocalModelElement();
SapphireDiagramEditorPagePart diagramPart = nodePart.getDiagramNodeTemplate().getDiagramEditorPart();
ConnectionService connService = diagramPart.service(ConnectionService.class);
for (DiagramConnectionPart connPart : connService.list())
{
if (connPart.removable() &&
((connPart.getEndpoint1() != null && connPart.getEndpoint1() == nodeElement) ||
connPart.getEndpoint2() != null && connPart.getEndpoint2() == nodeElement))
{