error("Error removing hard token: ",e);
    public void removeHardToken(Admin admin, String tokensn)        throws HardTokenDoesntExistsException {        debug(">removeHardToken(tokensn : " + tokensn + ")");        try {            HardTokenDataLocal htd = hardtokendatahome.findByPrimaryKey(tokensn);            htd.remove();            getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null, null,                LogEntry.EVENT_INFO_HARDTOKENDATA, "Hard token with sn " + tokensn + " removed.");        } catch (Exception e) {            try {                getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(), null,                    null, LogEntry.EVENT_ERROR_HARDTOKENDATA,                    "Error removing hard token with sn " + tokensn + ".");            } catch (Exception re) {                throw new EJBException(e);            }            throw new HardTokenDoesntExistsException("Tokensn : " + tokensn);        }        debug("<removeHardToken()");    }