Updated src file with RestTemplate