}
}
key = extractKeyFromResponseIfItWasNotAlreadyProvided(key, response);
return new DefaultHttpResponse(bucket, key, status, headers, body, stream, response, httpMethod);
} catch (IOException e) {
httpMethod.abort();
return toss(new RiakIORuntimeException(e));
} finally {
if(!streamResponse && entity != null) {