code: public static OptimizationConfiguration fromYaml(String json) {
          try {
              return JsonMapper.getYamlMapper().readValue(json, OptimizationConfiguration.class);
          } catch (IOException e) {
              throw new RuntimeException(e);
          }
      }
docs: Create an optimization configuration from the json
  @param json the json to create the config from
  For type definitions
  @see OptimizationConfiguration