int caid = admin.getCAId();
int caid = admin.getCaId();
    private void removeHardTokenCertificateMappings(Admin admin, String tokensn){      debug(">removeHardTokenCertificateMappings(tokensn: " + tokensn + ")");	  int caid = admin.getCAId();      try{      	Iterator result = hardtokencertificatemaphome.findByTokenSN(tokensn).iterator();      	while(result.hasNext()){          HardTokenCertificateMapLocal htcm = (HardTokenCertificateMapLocal) result.next();          htcm.remove();      	}      	 getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_INFO_HARDTOKENCERTIFICATEMAP, "All certificate mappings with tokensn: "  + tokensn +" removed");        }catch(Exception e){           try{             getLogSession().log(admin, caid, LogEntry.MODULE_HARDTOKEN, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_HARDTOKENCERTIFICATEMAP, "Error removing certificate mapping with tokensn " + tokensn + ".");           }catch(Exception re){              throw new EJBException(e);           }         }         debug("<removeHardTokenCertificateMappings()");     } // removeHardTokenCertificateMapping