protected ConnectionAnchor getSourceConnectionAnchor() {
   if (getSource() != null && getSource() instanceof NodeEditPart) {
     NodeEditPart editPart = (NodeEditPart) getSource();
     return editPart.getSourceConnectionAnchor(this);
   }
   return super.getSourceConnectionAnchor();
 }
 protected ConnectionAnchor getTargetConnectionAnchor() {
   if (getTarget() instanceof NodeEditPart) {
     NodeEditPart editPart = (NodeEditPart) getTarget();
     return editPart.getTargetConnectionAnchor(this);
   }
   return super.getTargetConnectionAnchor();
 }