private JobSuggestedParamSet getNewSuggestedParamSet(JobDefinition jobDefinition) {
    JobSuggestedParamSet jobSuggestedParamSet = JobSuggestedParamSet.find.select("*")
        .fetch(JobSuggestedParamSet.TABLE.jobDefinition, "*")
        .where()
        .eq(JobSuggestedParamSet.TABLE.jobDefinition + "." + JobDefinition.TABLE.id, jobDefinition.id)
        .eq(JobSuggestedParamSet.TABLE.paramSetState, ParamSetStatus.CREATED)
        .order()
        .asc(JobSuggestedParamSet.TABLE.id)
        .setMaxRows(1)
        .findUnique();

    if (jobSuggestedParamSet == null) {
      //No new parameter set exists, returning the best parameter set
      logger.info("Returning best parameter set as no parameter suggestion found for job: " + jobDefinition.jobName);
      AutoTuningMetricsController.markParamSetNotFound();
      jobSuggestedParamSet = getBestParamSet(jobDefinition.jobDefId);
    }
    return jobSuggestedParamSet;
  }
Returns a parameter set in "CREATED" state corresponding to the given job definition if it exists, else returns
the best parameter set
@param jobDefinition jobDefinition for which param set is to be returned
@return JobSuggestedParamSet corresponding to the given job definition
app/com/linkedin/drelephant/tuning/AutoTuningAPIHelper.java