}
  public int getCurrentState(String name) {    synchronized (statusMap) {      return (name != null && statusMap.containsKey(name))          ? ((StatusEntry)statusMap.get(name)).currentState          : -1;    }  }