code: public void convertAll(String jobName, Writer writer) throws IOException {
      List<? extends JobState> jobStates = this.jobStateStore.getAll(jobName);
      if (jobStates.isEmpty()) {
        LOGGER.warn(String.format("No job state found for job with name %s", jobName));
        return;
      }
  
      try (JsonWriter jsonWriter = new JsonWriter(writer)) {
        jsonWriter.setIndent("\t");
        writeJobStates(jsonWriter, jobStates);
      }
    }
docs: Convert all past {@link JobState}s of the given job.
  
  @param jobName job name
  @param writer {@link java.io.Writer} to write the json document
  @throws IOException