private void saveTunerState(List<JobTuningInfo> jobTuningInfoList) {
    for (JobTuningInfo jobTuningInfo : jobTuningInfoList) {
      if (jobTuningInfo.getTunerState() == null) {
        continue;
      }
      JobSavedState jobSavedState = JobSavedState.find.byId(jobTuningInfo.getTuningJob().id);
      if (jobSavedState == null) {
        jobSavedState = new JobSavedState();
        jobSavedState.jobDefinitionId = jobTuningInfo.getTuningJob().id;
      }
      jobSavedState.savedState = jobTuningInfo.getTunerState().getBytes(Charset.forName("UTF-8"));
      jobSavedState.save();
    }
  }
Save the tuning info list to the database
@param jobTuningInfoList Tuning Info List
app/com/linkedin/drelephant/tuning/ParamGenerator.java