Iterator<OMText> itr = binaryNodes.iterator();
while (itr.hasNext()) {
OMText node = itr.next();
OMElement xop = AttachmentUtils.makeXopElement(node);
node.getParent().addChild(xop);
node.detach();
//We have to add the individual attachments in their raw
//binary form, so we can access them later.
if (log.isDebugEnabled()) {
log.debug("Create MTOM Message Attachment for " + node.getContentID());