/** Load tuning information from an existing tuning file. */
  private void loadTuningFile() {
    File file = new File(tuningFile);
    if (!file.exists()) {
      logger.warn(
          "AutoTune file {} not found - no initial automatic query tuning", file.getAbsolutePath());

    } else {
      AutoTuneXmlReader reader = new AutoTuneXmlReader();
      Autotune profiling = reader.read(file);
      logger.info("AutoTune loading {} tuning entries", profiling.getOrigin().size());
      for (Origin origin : profiling.getOrigin()) {
        queryTuner.put(origin);
      }
    }
  }
 /** Auto tune the query and enable profiling. */
 @Override
 public boolean tuneQuery(SpiQuery<?> query) {
   return queryTuner.tuneQuery(query);
 }