// START SNIPPET: SOAPHeaderProcessors
public static class InsertRequestOutHeaderProcessor implements Processor {
public void process(Exchange exchange) throws Exception {
CxfMessage message = exchange.getIn().getBody(CxfMessage.class);
Message cxf = message.getMessage();
List<SoapHeader> soapHeaders = (List)cxf.get(Header.HEADER_LIST);
// Insert a new header
String xml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><outofbandHeader "
+ "xmlns=\"http://cxf.apache.org/outofband/Header\" hdrAttribute=\"testHdrAttribute\" "