CertificateDataPK pk = new CertificateDataPK(); pk.fingerprint = CertTools.getFingerprintAsString(cert);  CertificateData data3 = home.findByPrimaryKey(pk);
ICertificateStoreSessionRemote store = storehome.create(); String fp = CertTools.getFingerprintAsString(cert); CertificateInfo data3 = store.getCertificateInfo(admin, fp);
    public void test07FindByIssuerAndSerno() throws Exception {        log.debug(">test07FindByIssuerAndSerno()");        String issuerDN = CertTools.getIssuerDN(cert);        CertificateDataPK pk = new CertificateDataPK();        pk.fingerprint = CertTools.getFingerprintAsString(cert);        CertificateData data3 = home.findByPrimaryKey(pk);        assertNotNull("Failed to find cert", data3);        log.debug("Looking for cert with DN:" + CertTools.getIssuerDN(cert) + " and serno " +                cert.getSerialNumber());        ICertificateStoreSessionRemote store = storehome.create();        Certificate fcert = store.findCertificateByIssuerAndSerno(new Admin(Admin.TYPE_INTERNALUSER), issuerDN, cert.getSerialNumber());        assertNotNull("Cant find by issuer and serno", fcert);        //log.debug(fcert.toString());        log.debug("<test07FindByIssuerAndSerno()");    }