TypeConverter typeConverter = new TypeConverter();
typeConverter.put("\"tempInKelvin\"", "\"tempInCelsius\"", "?+273.15");
typeConverter.put("\"tempInCelsius\"", "\"tempInKelvin\"", "?-273.15");
typeChecker.setTypeConverter(typeConverter);
typeValidation.setTypeChecker(typeChecker);
Flatten flatten = new Flatten();
List<Optimiser> optimisers = new LinkedList<Optimiser>();
optimisers.add(peValidation);
optimisers.add(typeValidation);
optimisers.add(flatten);