code: public void convert(String jobName, String jobId, Writer writer) throws IOException {
      List<? extends JobState> jobStates = this.jobStateStore.getAll(jobName, jobId + JOB_STATE_STORE_TABLE_SUFFIX);
      if (jobStates.isEmpty()) {
        LOGGER.warn(String.format("No job state found for job with name %s and id %s", jobName, jobId));
        return;
      }
  
      try (JsonWriter jsonWriter = new JsonWriter(writer)) {
        jsonWriter.setIndent("\t");
        // There should be only a single job state
        writeJobState(jsonWriter, jobStates.get(0));
      }
    }
docs: Convert a single {@link JobState} of the given job instance.
  
  @param jobName job name
  @param jobId job ID
  @param writer {@link java.io.Writer} to write the json document
  @throws IOException