transformer.transform(new DOMSource(document), domResult);
ByteArrayWriter writer = new ByteArrayWriter();
XmlWriter.getInstance().write(outputDocument, writer, Charset.defaultCharset());
currentData = writer.toByteArray();
}
return currentData;
} catch (Exception e) {
throw new SignerException(e);
}