error("Error storing certificate: ",e);
    public boolean storeCertificate(Admin admin, Certificate incert, String username, String cafp,        int status, int type) {        debug(">storeCertificate(" + cafp + ", " + status + ", " + type + ")");        try {            // Strip dangerous chars            username = StringTools.strip(username);            X509Certificate cert = (X509Certificate) incert;            CertificateDataPK pk = new CertificateDataPK();            pk.fingerprint = CertTools.getFingerprintAsString(cert);            logsession.log(admin, LogEntry.MODULE_CA, new java.util.Date(), username,                (X509Certificate) incert, LogEntry.EVENT_INFO_STORECERTIFICATE, "");            CertificateDataLocal data1 = null;            data1 = certHome.create(cert);            data1.setUsername(username);            data1.setCAFingerprint(cafp);            data1.setStatus(status);            data1.setType(type);        } catch (Exception e) {            try {                logsession.log(admin, LogEntry.MODULE_CA, new java.util.Date(), username,                    (X509Certificate) incert, LogEntry.EVENT_ERROR_STORECERTIFICATE, "");            } catch (RemoteException re) {            }            throw new EJBException(e);        }        debug("<storeCertificate()");        return true;    }