code: public JobDetails getJobByJobID(QualifiedJobId jobId, boolean populateTasks)
        throws IOException {
      JobDetails job = null;
      JobKey key = idService.getJobKeyById(jobId);
      if (key != null) {
        byte[] historyKey = jobKeyConv.toBytes(key);
        Table historyTable =
            hbaseConnection.getTable(TableName.valueOf(Constants.HISTORY_TABLE));
        Result result = historyTable.get(new Get(historyKey));
        historyTable.close();
        if (result != null && !result.isEmpty()) {
          job = new JobDetails(key);
          job.populate(result);
          if (populateTasks) {
            populateTasks(job);
          }
        }
      }
      return job;
    }
docs: Returns a specific job's data by job ID
  @param jobId the fully qualified cluster + job identifier
  @param populateTasks if {@code true} populate the {@link TaskDetails}
  records for the job