public Map<String, StateStore> globalStateStores() {
        Objects.requireNonNull(applicationId, "topology has not completed optimization");

        return Collections.unmodifiableMap(globalStateStores);
    }
Get any global {@link StateStore}s that are part of the
topology
@return map containing all global {@link StateStore}s
streams/src/main/java/org/apache/kafka/streams/processor/internals/InternalTopologyBuilder.java