public CertificateView[] getCACertificates(int caid) throws RemoteException, NamingException, CreateException {
public CertificateView[] getCACertificates(int caid) {
    public CertificateView[] getCACertificates(int caid) throws RemoteException, NamingException, CreateException {      CertificateView[] returnval = null;                  Collection chain = signsession.getCertificateChain(administrator, caid);            returnval = new CertificateView[chain.size()];      Iterator iter = chain.iterator();      int i=0;      while(iter.hasNext()){        Certificate next = (Certificate) iter.next();          RevokedInfoView revokedinfo = null;        RevokedCertInfo revinfo = certificatesession.isRevoked(administrator, CertTools.getIssuerDN((X509Certificate) next), ((X509Certificate) next).getSerialNumber());        if(revinfo != null && revinfo.getReason() != RevokedCertInfo.NOT_REVOKED)          revokedinfo = new RevokedInfoView(revinfo);        returnval[i] = new CertificateView((X509Certificate) next, revokedinfo,null);        i++;      }      return returnval;    }