public int getStartHostID(InetAddress hostAddress) throws NoSuchElementException {
    WorkerEntry entry = null;
    synchronized (this.entryMap) {
      entry = this.entryMap.get(hostAddress);
    }

    if (entry == null) {
      throw new NoSuchElementException("There is no entry: " + hostAddress.getHostName());
    }

    return entry.getStartHostID();
  }
  /**
   * Generates a String representation of this instance. This String can be parsed by {@link
   * RemoteControlPipeTable#parseString(String) parseString} method.
   */
  public String getStringRepresentation() { // generates an argument for -w option
    StringBuilder sb = new StringBuilder();
    boolean firstEntry = true;

    for (WorkerEntry w : this.entrySet) {
      if (firstEntry) {
        firstEntry = false;
      } else {
        sb.append(",");
      }

      sb.append(w.getHostAndPort());
      sb.append(",");
      sb.append(w.getStartHostID());
    }

    return sb.toString();
  }