code: public synchronized void updateServer(String originalName,
        HadoopServer server) {
  
      // Update the map if the location name has changed
      if (!server.getLocationName().equals(originalName)) {
        servers.remove(originalName);
        servers.put(server.getLocationName(), server);
      }
      store();
      fireListeners(server, SERVER_STATE_CHANGED);
    }
docs: Update one Hadoop location
  
  @param originalName the original location name (might have changed)
  @param server the location