@Override
  public void removeStatListener(StatListener observer) {
    int listenerId = -1;
    boolean foundIt = false;
    synchronized (statListenersLock) {
      ListenerIdMap.EntryIterator it = statListeners.iterator();
      ListenerIdMap.Entry e = it.next();
      while (e != null) {
        if (e.getValue() == observer) {
          foundIt = true;
          listenerId = e.getKey();
          statListeners.remove(listenerId);
          break;
        }
        e = it.next();
      }
    }
    if (foundIt) {
      cancelStatListener(listenerId);
    }
  }
Removes a <code>StatListener</code> that receives updates from the remote member VM.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/RemoteGemFireVM.java