docs: synchronized void addHandler(ServiceReference<?> serviceReference, boolean osgiHandler) {
          HandlerHolder holder = new HandlerHolder(eventEngine, serviceReference, osgiHandler);
  
          serviceReferenceMap.put(serviceReference, holder);
  
          for (String topic : holder.getDiscreteTopics()) {
              addTopicHandlerToMap(topic, holder, discreteEventHandlers);
          }
          for (String topic : holder.getWildcardTopics()) {
              addTopicHandlerToMap(topic, holder, wildcardEventHandlers);
          }
  
          // Clear the cache since it's no longer up to date
          clearTopicDataCache();
      }