AttachmentPart ap = ((AttachmentPart)attachments.get(contentID.trim()));
//update the key status as accessed
keyAccessStatus.put(contentID.trim(), "accessed");
OMText text = new OMTextImpl(ap.getDataHandler(), true,
omEnvelope.getOMFactory());
child.removeAttribute(hrefAttr);
child.addChild(text);
} else {
//possibly there can be references in the children of this omEnvelope
//so recurse through.
insertAttachmentNodes(attachments, child, keyAccessStatus);