getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,
logsession.log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,
    public void removeKeyRecoveryData(Admin admin, X509Certificate certificate) {        debug(">removeKeyRecoveryData(certificate: " + certificate.getSerialNumber().toString() +                ")");        final String hexSerial = certificate.getSerialNumber().toString(16);        final String dn = CertTools.getIssuerDN(certificate);        try {            String username = null;            KeyRecoveryDataLocal krd = keyrecoverydatahome.findByPrimaryKey(new KeyRecoveryDataPK(hexSerial, dn));            username = krd.getUsername();            krd.remove();            getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,                    certificate, LogEntry.EVENT_INFO_KEYRECOVERY,                    "Keyrecovery data for certificate with serial number : " +                    hexSerial + ", " +                    dn + " removed.");        } catch (Exception e) {            getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), null,                    certificate, LogEntry.EVENT_ERROR_KEYRECOVERY,                    "Error when removing keyrecovery data for certificate with serial number : " +                    hexSerial + ", " +                    dn + ".");        }        debug("<removeKeyRecoveryData()");    } // removeKeyRecoveryData