Document signedDoc = builder.build(doc, crypto, secHeader);
// Add a comment node as the first node element
org.w3c.dom.Node firstChild = signedDoc.getFirstChild();
org.w3c.dom.Node newNode = signedDoc.removeChild(firstChild);
org.w3c.dom.Node commentNode = signedDoc.createComment("This is a comment");
signedDoc.appendChild(commentNode);
signedDoc.appendChild(newNode);
if (LOG.isDebugEnabled()) {
LOG.debug("After Signing....");