client.get(String uri) is deprecated. Try not to add in new code that uses deprecated methods...