error("Error removing hard token certificate mapping: ",e);
    public void removeHardTokenCertificateMapping(Admin admin, X509Certificate certificate) {        String certificatesn = certificate.getSerialNumber().toString(16);        debug(">removeHardTokenCertificateMapping(Certificatesn: " + certificatesn + ")");        try {            HardTokenCertificateMapLocal htcm = hardtokencertificatemaphome.findByPrimaryKey(CertTools.getFingerprintAsString(                        certificate));            htcm.remove();            getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null, null,                LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP,                "Certificate mapping with certificatesn: " + certificatesn + " removed.");        } catch (Exception e) {            try {                getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null,                    null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP,                    "Error removing certificate mapping with certificatesn " + certificatesn + ".");            } catch (Exception re) {                throw new EJBException(e);            }        }        debug("<removeHardTokenCertificateMapping()");    }