Refactor using RestTemplate to call search api instead of Camel