HttpEntity entity = response.getEntity();
HttpResponseBindingData httpResponse = new HttpResponseBindingData();
Header[] headers = response.getAllHeaders();
for (Header header : headers) {
httpResponse.addHeader(header.getName(), header.getValue());
}
if (entity != null) {
if (entity.getContentType() != null) {
httpResponse.setContentType(new ContentType(entity.getContentType().getValue()));
} else {