using now resttemplate instead of jersey