error("Error finding certificates in hard token: ",e);
    public Collection findCertificatesInHardToken(Admin admin, String tokensn) {        debug("<findCertificatesInHardToken(username :" + tokensn + ")");        ArrayList returnval = new ArrayList();        HardTokenCertificateMapLocal htcm = null;        try {            Collection result = hardtokencertificatemaphome.findByTokenSN(tokensn);            Iterator i = result.iterator();            while (i.hasNext()) {                htcm = (HardTokenCertificateMapLocal) i.next();                returnval.add(getCertificateStoreSession().findCertificateByFingerprint(admin,                        htcm.getCertificateFingerprint()));            }        } catch (Exception e) {            throw new EJBException(e);        }        debug("<findCertificatesInHardToken()");        return returnval;    }