rewrote the spring converters from java to scala