getLogSession().log(admin, newcertissuerdn.hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENISSUERDATA,"Hard token issuer " + oldalias + " renamed to " + newalias +  "." );
getLogSession().log(admin, bcdn.hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENISSUERDATA,"Hard token issuer " + oldalias + " renamed to " + newalias +  "." );
    public boolean renameHardTokenIssuer(Admin admin, String oldalias, String newalias,                                         BigInteger newcertificatesn, String newcertissuerdn){       debug(">renameHardTokenIssuer(from " + oldalias + " to " + newalias + ")");       boolean returnvalue = false;       try{          hardtokenissuerhome.findByAlias(newalias);       }catch(FinderException e){         try{           hardtokenissuerhome.findByCertificateSN(newcertificatesn.toString(16), newcertissuerdn);         }catch(FinderException f){           try{             HardTokenIssuerDataLocal htih = hardtokenissuerhome.findByAlias(oldalias);             htih.setAlias(newalias);             htih.setCertSN(newcertificatesn);             htih.setCertIssuerDN(newcertissuerdn);             returnvalue = true;           }catch(FinderException g){}         }       }              if(returnvalue)         getLogSession().log(admin, newcertissuerdn.hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENISSUERDATA,"Hard token issuer " + oldalias + " renamed to " + newalias +  "." );       else         getLogSession().log(admin, newcertissuerdn.hashCode(), LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENISSUERDATA," Error renaming hard token issuer  " + oldalias +  " to " + newalias + "." );       debug("<renameHardTokenIssuer()");       return returnvalue;    } // renameHardTokenIssuer