for(final NameValuePair header : headers) {
builder.startElement(new QName("header", NAMESPACE_URI, PREFIX), null);
builder.addAttribute(new QName("name", null, null), header.getName());
builder.addAttribute(new QName("value", null, null), header.getValue());
builder.endElement();
}
builder.endElement();
if(!(method instanceof HeadMethod || method instanceof OptionsMethod)) { // Head and Options methods never have any response body