CLOUDIFY-1993 Replaced getSSLHttpClient(URL) method's code with non deprecated code.