public List<String> getStoreNames() {
    Config subConfig = subset(STORE_PREFIX, true);
    // side input store configs can contain both the store factory and side input processor factory configs. dedup.
    Set<String> storeNames = new HashSet<>();
    for (String key : subConfig.keySet()) {
      if (key.endsWith(SIDE_INPUT_PROCESSOR_FACTORY_SUFFIX)) {
        storeNames.add(key.substring(0, key.length() - SIDE_INPUT_PROCESSOR_FACTORY_SUFFIX.length()));
      } else if (key.endsWith(FACTORY_SUFFIX)) {
        storeNames.add(key.substring(0, key.length() - FACTORY_SUFFIX.length()));
      }
    }
    return new ArrayList<>(storeNames);
  }
Config helper methods related to storage.
samza-core/src/main/java/org/apache/samza/config/StorageConfig.java