//
XMLSignatureInput xmlSignatureInput = null;
if (data instanceof ApacheData) {
xmlSignatureInput = ((ApacheData) data).getXMLSignatureInput();
} else if (data instanceof DOMSubTreeData) {
DOMSubTreeData subTree = (DOMSubTreeData) data;
xmlSignatureInput = new XMLSignatureInput(subTree.getRoot());
xmlSignatureInput.setExcludeComments(subTree.excludeComments());
} else {
try {
xmlSignatureInput =
new XMLSignatureInput(((OctetStreamData)data).getOctetStream());
} catch (Exception ex) {