private byte[] doRequest(HttpRequestBase request, TokenHolder tokenHolder, HttpParameters oauthParams) {
CloseableHttpResponse response = null;
try {
OAuthConsumer consumer = tokenHolder.createConsumer();
consumer.setAdditionalParameters(oauthParams);
consumer.sign(request);
response = client.execute(request);
int statusCode = response.getStatusLine().getStatusCode();
HttpEntity entity = response.getEntity();
byte[] content = entity != null ? readBytes(entity.getContent()) : new byte[0];
switch (statusCode) {