code: public void stopAll() {
  	Iterator<GatewayEntry> it = getEntries().values().iterator();
  	Gateway g;
  	while (it.hasNext()) {
  	    g = it.next().getGateway();
  	    if (g != null) stop(g);
  	}
      }
docs: stop all entries