throw new SignatureManagerException(e);
return new String[] { String.valueOf(STATUS_ERROR), "0", e.getMessage() };
    public String[] verifyDocument(String xml)        throws SignatureManagerException {        try {            StringReader reader = new StringReader(xml);            Document doc = db.parse(new InputSource(reader));            FileOutputStream fout = new FileOutputStream("testout.xml");            XMLUtils.outputDOM(doc,fout);            VerificationResponse vr = verifyDocument(doc);            ByteArrayOutputStream out = new ByteArrayOutputStream();            XMLUtils.outputDOM(vr.document,out);            String[] ret = new String[2];            ret[0] = vr.alias;            ret[1] = out.toString();            return ret;        } catch (Exception e) {            throw new SignatureManagerException(e);        }    }