code: private boolean isMatchingJobId(JobID jobId) {
      if (isStandalone) {
        // Requests to remote JT must hold exact attempt id.
        return this.jobId.equals(jobId);
      } else {
        // Local JT serves as translator between job id and job attempt id.
        return this.jobId.equals(getMainJobID(jobId));
      }
    }
docs: Check if given id matches job id of this JT.
  @param jobId id to check
  @return true iff match