public void updateAfterNewSubscription(String destination, String sessionId, String subsId) {
      LinkedMultiValueMap<String, String> updatedMap = this.accessCache.computeIfPresent(destination, (key, value) -> {
        if (getPathMatcher().match(destination, key)) {
          LinkedMultiValueMap<String, String> subs = value;
          subs.add(sessionId, subsId);
          return subs;
        }
        return value;
      });
      if (updatedMap == null) {
        this.notSubscriptionCache.invalidate(destination);
      }
    }
Map from destination -> <sessionId, subscriptionId> for fast look-ups
ambari-server/src/main/java/org/apache/ambari/server/agent/stomp/AmbariSubscriptionRegistry.java