docs: synchronized void setStageTopics(String stageName, String[] topics) {
          for (String t : topics) {
              if (t.equals("*")) {
                  wildcardStageTopics.put("", stageName);
              } else if (t.endsWith("/*")) {
                  wildcardStageTopics.put(t.substring(0, t.length() - 1), stageName);
              } else {
                  discreteStageTopics.put(t, stageName);
              }
          }
  
          // Clear the cache since it's no longer up to date
          clearTopicDataCache();
      }