public void undo() {
   connection.addBendpoint(index, oldLocation);
 }
 public void execute() {
   oldLocation = (Point) connection.getBendpoints().get(index);
   connection.removeBendpoint(index);
 }