error("Error adding hard token certificate mapping: ",e);
    public void addHardTokenCertificateMapping(Admin admin, String tokensn,        X509Certificate certificate) {        String certificatesn = certificate.getSerialNumber().toString(16);        debug(">addHardTokenCertificateMapping(certificatesn : " + certificatesn + ", tokensn : " +            tokensn + ")");        try {            hardtokencertificatemaphome.create(CertTools.getFingerprintAsString(certificate),                tokensn);            getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null, null,                LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP,                "Certificate mapping added, certificatesn: " + certificatesn + ", tokensn: " +                tokensn + " added.");        } catch (Exception e) {            try {                getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null,                    null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP,                    "Error adding certificate mapping, certificatesn: " + certificatesn +                    ", tokensn: " + tokensn);            } catch (RemoteException re) {                throw new EJBException(e);            }        }        debug("<addHardTokenCertificateMapping()");    }