@Override
  public MetadataStore getMetadataStore(String namespace, Config config, MetricsRegistry metricsRegistry) {
    String globalAppId = new ApplicationConfig(config).getGlobalAppId();
    String metadataStoreBaseDir = "/" + globalAppId + "/" + CoordinationConstants.APPLICATION_RUNNER_PATH_SUFFIX + "/" + namespace;
    return new ZkMetadataStore(metadataStoreBaseDir, config, metricsRegistry);
  }
Builds the {@link ZkMetadataStore} based upon the provided {@link Config}
and {@link MetricsRegistry}.
samza-core/src/main/java/org/apache/samza/zk/ZkMetadataStoreFactory.java