public String getSubmittedId() {
    if (job == null ) {
      return null;
    }

    JobID submittedJobId = job.getJobID();
    if (submittedJobId == null) {
      return null;
    } else {
      return submittedJobId.toString();
    }
  }
@param secureMetastoreAccess - if true, a delegation token will be created
                             and added to the job
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/tool/TempletonControllerJob.java