getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), null,
logsession.log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), null,
    public boolean markAsRecoverable(Admin admin, X509Certificate certificate) {        debug(">markAsRecoverable(certificatesn: " + certificate.getSerialNumber() + ")");        boolean returnval = false;        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.setMarkedAsRecoverable(true);            getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,                    certificate, LogEntry.EVENT_INFO_KEYRECOVERY,                    "User's certificate marked for recovery.");            returnval = true;        } catch (Exception e) {            getLogSession().log(admin, certificate, LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), null,                    certificate, LogEntry.EVENT_ERROR_KEYRECOVERY,                    "Error when trying to mark certificate for recovery.");        }        debug("<markAsRecoverable()");        return returnval;    } // markAsRecoverable