error("Error getting hard token: ",e);
    public HardTokenData getHardToken(Admin admin, String tokensn) {        debug("<getHardToken(tokensn :" + tokensn + ")");        HardTokenData returnval = null;        HardTokenDataLocal htd = null;        try {            htd = hardtokendatahome.findByPrimaryKey(tokensn);            if (htd != null) {                returnval = new HardTokenData(htd.getTokenSN(), htd.getUsername(),                        htd.getCreateTime(), htd.getModifyTime(), htd.getTokenType(),                        htd.getHardToken());                getLogSession().log(admin, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),                    htd.getUsername(), null, LogEntry.EVENT_INFO_HARDTOKENVIEWED,                    "Hard token with sn " + tokensn + " viewed.");            }        } catch (Exception e) {        }        debug("<getHardToken()");        return returnval;    }