private JobExecution getJobExecution(TuningInput tuningInput) {

    JobExecution jobExecution = JobExecution.find.select("*")
        .fetch(JobExecution.TABLE.job, "*")
        .where()
        .eq(JobExecution.TABLE.jobExecId, tuningInput.getJobExecId())
        .findUnique();

    if (jobExecution == null) {
      jobExecution = addNewExecution(tuningInput);
    }
    return jobExecution;
  }
Returns the job execution corresponding to the given tuning input if it exists, else creates one and returns it
@param tuningInput Tuning Input corresponding to which job execution is to be returned
@return JobExecution corresponding to the given tuning input
app/com/linkedin/drelephant/tuning/AutoTuningAPIHelper.java