error("Error getting hard tokens: ",e);
    public Collection getHardTokens(Admin admin, String username) {        debug("<getHardToken(username :" + username + ")");        ArrayList returnval = new ArrayList();        HardTokenDataLocal htd = null;        try {            Collection result = hardtokendatahome.findByUsername(username);            Iterator i = result.iterator();            while (i.hasNext()) {                htd = (HardTokenDataLocal) i.next();                returnval.add(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 " + htd.getTokenSN() + " viewed.");            }        } catch (Exception e) {        }        debug("<getHardToken()");        return returnval;    }