code: public static JobRecord createRootJobRecord(Job<?> jobInstance, JobSetting[] settings) {
      Key key = generateKey(null, DATA_STORE_KIND);
      return new JobRecord(key, jobInstance, settings);
    }
docs: A factory method for root jobs.
  
  @param jobInstance The non-null user-supplied instance of {@code Job} that
  implements the Job that the newly created JobRecord represents.
  @param settings Array of {@code JobSetting} to apply to the newly created
  JobRecord.