code: private String getConnectedEndPoint(String eventName) {
          //  Returns endpoint for specified eventName
          Enumeration<String> keys = connectedMap.keys();
          while (keys.hasMoreElements()) {
              String  key = keys.nextElement();
              EventList  events = connectedMap.get(key);
              for (String event : events) {
                  if (event.equals(eventName)) {
                      return key;
                  }
              }
          }
          return null;
      }
docs: ===============================================================