private void setTuningAlgorithm(TuningInput tuningInput) throws IllegalArgumentException {
    //Todo: Handle algorithm version later
    TuningAlgorithm tuningAlgorithm = TuningAlgorithm.find.select("*")
        .where()
        .eq(TuningAlgorithm.TABLE.jobType, tuningInput.getJobType())
        .eq(TuningAlgorithm.TABLE.optimizationMetric, tuningInput.getOptimizationMetric())
        .findUnique();
    if (tuningAlgorithm == null) {
      throw new IllegalArgumentException(
          "Wrong job type or optimization metric. Job Type " + tuningInput.getJobType() + ". Optimization Metrics: "
              + tuningInput.getOptimizationMetric());
    }
    tuningInput.setTuningAlgorithm(tuningAlgorithm);
  }
Sets the tuning algorithm based on the job type and optimization metric
@param tuningInput TuningInput for which tuning algorithm is to be set
app/com/linkedin/drelephant/tuning/AutoTuningAPIHelper.java