protected T sendAndReturn ( final HttpUriRequest request ) throws IOException { try ( CloseableHttpClient client = HttpClients . createDefault ( ) ) { return this . parseResponse ( client . execute ( request ) ) ; } }
function to dispatch the request and pass back the response .