engine.setAdmireRegistry(registry);
ProcessingElementValidation peValidation =
new ProcessingElementValidation();
TypeValidator typeValidation = new TypeValidator();
SimpleTupleTypeConverter typeChecker = new SimpleTupleTypeConverter();
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);