System.out.println("Revoked cert "+certfps[i]);
cat.debug("Revoked cert "+certfps[i]);
    public void test03listAndRevoke() throws Exception {        cat.debug(">test03listAndRevoke()");        Object obj2 = ctx.lookup("CertificateStoreSession");        ICertificateStoreSessionHome storehome = (ICertificateStoreSessionHome) javax.rmi.PortableRemoteObject.narrow(obj2, ICertificateStoreSessionHome.class);        ICertificateStoreSessionRemote store = storehome.create();        String[] certfps = store.listAllCertificates();        assertNotNull("failed to list certs", certfps);        assertTrue("failed to list certs", certfps.length != 0);        System.out.println("List certs:");        for (int i=0;i< certfps.length;i++)            System.out.println(certfps[i]);        // Revoke all certs        for (int i=0; i<certfps.length;i++) {            CertificateDataPK revpk = new CertificateDataPK();            revpk.fp = certfps[i];            CertificateData rev = home.findByPrimaryKey(revpk);            if (rev.getStatus() != CertificateData.CERT_REVOKED) {                rev.setStatus(CertificateData.CERT_REVOKED);                rev.setRevocationDate(new Date());                System.out.println("Revoked cert "+certfps[i]);            }        }        cat.debug("<test03listAndRevoke()");    }