It also looks like the DefaultHttpClient class has been deprecated in favor of HttpClientBuilder, we should probably be using that with a credentials provider configured in Spring.