int caid = ILogSessionLocal.INTERNALCAID;
int caid = LogConstants.INTERNALCAID;
    public void changeHardToken(Admin admin, String tokensn, int tokentype, HardToken hardtokendata) throws HardTokenDoesntExistsException{        debug(">changeHardToken(tokensn : " + tokensn + ")");        int caid = ILogSessionLocal.INTERNALCAID;        try {            HardTokenDataLocal htd = hardtokendatahome.findByPrimaryKey(tokensn);            htd.setTokenType(tokentype);            htd.setHardToken(hardtokendata);            htd.setModifyTime(new java.util.Date());            caid = htd.getSignificantIssuerDN().hashCode();            getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),htd.getUsername(), null, LogEntry.EVENT_INFO_HARDTOKENDATA,"Hard token with serial number : " + tokensn + " changed.");        }        catch (Exception e) {            getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENDATA,"Error when trying to update token with sn : " + tokensn + ".");          throw new HardTokenDoesntExistsException("Tokensn : " + tokensn);        }        debug("<changeHardToken()");    } // changeHardToken