Element endpoint1 = connPart.getEndpoint1();
Element endpoint2 = connPart.getEndpoint2();
DiagramNodePart nodePart1 = getSapphirePart().getDiagramNodePart(endpoint1);
DiagramNodePart nodePart2 = getSapphirePart().getDiagramNodePart(endpoint2);
if (nodePart1 != null && nodePart2 != null) {
DiagramConnectionPresentation connPresentation = new DiagramConnectionPresentation(connPart, getPresentation(),
getPresentation().shell(),
getConfigurationManager(), getResourceCache());
DiagramConnectionModel connectionModel = new DiagramConnectionModel(this, connPresentation);
connections.add(connectionModel);