}catch(javax.ejb.FinderException fe) {} catch(Exception e){ throw new EJBException(e); }
} catch(javax.ejb.FinderException fe) {  log.debug("Can nog find CA with name: "+name); } catch(Exception e) { log.error("Error getting CA info: ", e); throw new EJBException(e); }
    public CAInfo getCAInfo(Admin admin, String name) {        CAInfo cainfo = null;        try{            CADataLocal cadata = cadatahome.findByName(name);			if(cadata.getStatus() == SecConst.CA_ACTIVE && new Date(cadata.getExpireTime()).before(new Date())){			  cadata.setStatus(SecConst.CA_EXPIRED);			}            authorizedToCA(admin,cadata.getCaId().intValue());                        CATokenInfo catokeninfo = cadata.getCA().getCAToken().getCATokenInfo();            if(catokeninfo instanceof HardCATokenInfo && ((HardCATokenInfo) catokeninfo).getCATokenStatus() == IHardCAToken.STATUS_OFFLINE){            	cadata.setStatus(SecConst.CA_OFFLINE);            }                    cainfo = cadata.getCA().getCAInfo();        }catch(javax.ejb.FinderException fe) {}         catch(Exception e){           throw new EJBException(e);         }        return cainfo;    } // getCAInfo