getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,
logsession.log(admin, admin.getCAId(), LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,
    public void removeAllKeyRecoveryData(Admin admin, String username) {        debug(">removeAllKeyRecoveryData(user: " + username + ")");        try {            Collection result = keyrecoverydatahome.findByUsername(username);            Iterator iter = result.iterator();            while (iter.hasNext()) {                ((KeyRecoveryDataLocal) iter.next()).remove();            }            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), username,                    null, LogEntry.EVENT_INFO_KEYRECOVERY,                    "All keyrecovery data for user: " + username + " removed.");        } catch (Exception e) {            getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_KEYRECOVERY, new java.util.Date(), null,                    null, LogEntry.EVENT_ERROR_KEYRECOVERY,                    "Error when removing all keyrecovery data for user: " + username + ".");        }        debug("<removeAllKeyRecoveryData()");    } // removeAllKeyRecoveryData