private Config getConfigFromPrevRun() {
    CoordinatorStreamSystemConsumer consumer = new CoordinatorStreamSystemConsumer(userConfig, new MetricsRegistryMap());
    consumer.register();
    consumer.start();
    consumer.bootstrap();
    consumer.stop();

    Config cfg = consumer.getConfig();
    LOG.info("Previous config is: " + cfg.toString());
    return cfg;
  }
Temporary helper class with specific implementation of {@link JobPlanner#prepareJobs()}
for remote-launched Samza processors (e.g. in YARN).

TODO: we need to consolidate this class with {@link ExecutionPlanner} after SAMZA-1811.
samza-core/src/main/java/org/apache/samza/execution/RemoteJobPlanner.java