getLogSession().log(admin, certificate.getIssuerDN().toString().hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP, "Certificate mapping with certificatesn: "  + certificatesn +" removed.");
getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP, "Certificate mapping with certificatesn: "  + certificatesn +" removed.");
    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, certificate.getIssuerDN().toString().hashCode(), 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, certificate.getIssuerDN().toString().hashCode(), 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()");    } // removeHardTokenCertificateMapping