refactor restTemplate converters as helper