if (XProcConstants.c_header.equals(event.getNodeName())) {
String name = event.getAttributeValue(_name);
if (name == null) {
continue; // this can't happen, right?
}
if (name.toLowerCase().equals("content-type")) {
// We'll deal with the content-type header later
headerContentType = event.getAttributeValue(_value).toLowerCase();
} else {
headers.add(new BasicHeader(event.getAttributeValue(_name), event.getAttributeValue(_value)));
}