//javax.xml.parsers.DocumentBuilder db = dbf.newDocumentBuilder();
//result = db.parse(baos.toString());
}
XKMSCAServiceRequest cAReq = new XKMSCAServiceRequest(result, id,true,false);
XKMSCAServiceResponse resp = (XKMSCAServiceResponse) caAdminSession.extendedService(admin, XKMSConfig.cAIdUsedForSigning(admin, caAdminSession), cAReq);
retval = resp.getSignedDocument();
if (log.isDebugEnabled()) {