working on the resttemplate client.