private static JsonNode formatGetCurrentRunParametersOutput(Map<String, Double> outputParams, Integer version) {
    if (version == 1) {
      return Json.toJson(outputParams);
    } else {
      Map<String, String> outputParamFormatted = new HashMap<String, String>();

      //Temporarily removing input split parameters
      outputParams.remove("pig.maxCombinedSplitSize");
      outputParams.remove("mapreduce.input.fileinputformat.split.maxsize");

      for (Map.Entry<String, Double> param : outputParams.entrySet()) {
        if (param.getKey().equals("mapreduce.map.sort.spill.percent")) {
          outputParamFormatted.put(param.getKey(), String.valueOf(param.getValue()));
        } else if (param.getKey().equals("mapreduce.map.java.opts")
            || param.getKey().equals("mapreduce.reduce.java.opts")) {
          outputParamFormatted.put(param.getKey(), "-Xmx" + Math.round(param.getValue()) + "m");
        } else {
          outputParamFormatted.put(param.getKey(), String.valueOf(Math.round(param.getValue())));
        }
      }
      return Json.toJson(outputParamFormatted);
    }
  }
Rest API for getting current run parameters from auto tuning framework
@return
app/controllers/Application.java