public void undo() {
   newSource.removeOutput(connection);
   oldSource.addOutput(connection);
   connection.setSource(oldSource);
 }
 public void execute() {
   oldSource.removeOutput(connection);
   newSource.addOutput(connection);
   connection.setSource(newSource);
 }