if(contentLocation != null)
response.addHeader(new BasicHeader("Content-Location", contentLocation));
entity.setContentEncoding(charset);
entity.setContentType(this.contentType);
entity.setContent(this.body);
response.setEntity(new BufferedHttpEntity(entity));
assertParameters(request);
assertHeaders(request);
this.wasExecuted = true;