Vandana - Refactored to use RestTemplate and added logic to poll for the status url