docs: public static HttpEntity createEntity(HttpResponse response) throws IOException {
  		ByteArrayInputStream is = new ByteArrayInputStream(
  				EntityUtils.toByteArray(response.getEntity()));
  		BasicHttpEntity entity = new BasicHttpEntity();
  		entity.setContent(is);
  		entity.setContentLength(response.getEntity().getContentLength());
  		if (CloseableHttpResponse.class.isInstance(response)) {
  			((CloseableHttpResponse) response).close();
  		}
  		return entity;
  	}