for (int i = 0; i < len; i++) {
Node nd = headerEls.item(i);
if (Node.ELEMENT_NODE == nd.getNodeType()) {
Element hel = (Element)nd;
Bus b = message.getExchange().get(Bus.class);
HeaderProcessor p = null;
if (b != null && b.getExtension(HeaderManager.class) != null) {
p = b.getExtension(HeaderManager.class).getHeaderProcessor(hel.getNamespaceURI());
}
Object obj;
DataBinding dataBinding = null;
if (p == null || p.getDataBinding() == null) {
obj = nd;
} else {
obj = p.getDataBinding().createReader(Node.class).read(nd);
}
//TODO - add the interceptors
SoapHeader shead = new SoapHeader(new QName(nd.getNamespaceURI(),
nd.getLocalName()),