MessageInfo msgInfo = AbstractBinding.getOutgoingMessageInfo(context);
MessagePartContainer headers = context.getBinding().getHeaders(msgInfo);
if (headers.size() == 0) return;
Object[] body = (Object[]) context.getCurrentMessage().getBody();
JDOMStreamWriter writer = new JDOMStreamWriter(context.getOutMessage().getOrCreateHeader());
for (Iterator itr = headers.getMessageParts().iterator(); itr.hasNext();)
{
MessagePartInfo part = (MessagePartInfo) itr.next();
Object value;