HttpResponse response = httpClient.execute(httpGet);
throwFailedRequestExceptionOnUnwantedResponseCode(response);
inputStream = response.getEntity().getContent();
}
catch (URISyntaxException e) {
throw new RequestFailedException(e);
}
catch (ClientProtocolException e) {
throw new RequestFailedException(e);
}
catch (IOException e) {
throw new RequestFailedException(e);
}
return inputStream;
}