returnval.add(cadatalocal.getCA().getCACertificate());
CA ca = cadatalocal.getCA(); if (log.isDebugEnabled()) { debug("Getting certificate chain for CA: "+ca.getName()+", "+ca.getCAId()); } returnval.add(ca.getCACertificate());
    public Collection getAllCACertificates(Admin admin){      ArrayList returnval = new ArrayList();      try{        Collection result = cadatahome.findAll();        Iterator iter = result.iterator();        while(iter.hasNext()){           CADataLocal cadatalocal = (CADataLocal) iter.next();           returnval.add(cadatalocal.getCA().getCACertificate());        }      }catch(javax.ejb.FinderException fe){}        catch(UnsupportedEncodingException uee){        	throw new EJBException(uee);        }      return returnval;    } // getAllCACertificates