public void renameHost(HostComponent hostComponent, String name) {  hosts.remove(hostComponent); hostComponent.setName(name); hosts.add(hostComponent); fireModification();
public void renameHost(HostComponent hostComponent, String name) throws IllegalArgumentException { ExperimentHost testHost = new ExperimentHost(name); if(hosts.contains(testHost)) { throw new IllegalArgumentException("Host Already Exists in Society"); } else { hosts.remove(hostComponent); hostComponent.setName(name); hosts.add(hostComponent); fireModification(); }
  public void renameHost(HostComponent hostComponent, String name) {    // FIXME! This allows 2 Hosts with the same name!    hosts.remove(hostComponent);    hostComponent.setName(name);    hosts.add(hostComponent);    fireModification();  }