rewrote the ElasticRestClient to use the much newer HttpComponents library, instead of HttpClient (both from apache)