@Override
 protected Color getFillColor() {
   DiagramConnectionEditPart editPart = (DiagramConnectionEditPart) this.getOwner();
   DiagramResourceCache cache = editPart.getCastedModel().getDiagramModel().getResourceCache();
   return isPrimary()
       ? cache.getColor(BACKGROUND_COLOR_PRIMARY)
       : cache.getColor(BACKGROUND_COLOR_SECONDARY);
 }
 @Override
 protected Command getReconnectSourceCommand(ReconnectRequest request) {
   DiagramNodeModel newSource = (DiagramNodeModel) getHost().getModel();
   DiagramConnectionEditPart editPart =
       (DiagramConnectionEditPart) request.getConnectionEditPart();
   ReconnectConnectionCommand cmd = new ReconnectConnectionCommand(editPart.getCastedModel());
   cmd.setNewSource(newSource);
   return cmd;
 }