@Override
  public List<JobConfig> getJobConfigs() {
    String json = "";
    try {
      json = getPlanAsJson();
    } catch (Exception e) {
      log.warn("Failed to generate plan JSON", e);
    }

    final String planJson = json;
    return getJobNodes().stream().map(n -> n.generateConfig(planJson)).collect(Collectors.toList());
  }
The JobGraph is only constructed by the {@link ExecutionPlanner}.

@param config configuration for the application
@param appDesc {@link ApplicationDescriptorImpl} describing the application
samza-core/src/main/java/org/apache/samza/execution/JobGraph.java