throw new CMSException("error processing crls", e);
throw new CMSException("error processing certs", e);
    public void addCertificatesAndCRLs(        CertStore               certStore)        throws CertStoreException, CMSException    {        //        // divide up the certs and crls.        //        try        {            for (Iterator it = certStore.getCertificates(null).iterator(); it.hasNext();)            {                X509Certificate         c = (X509Certificate)it.next();                certs.add(X509CertificateStructure.getInstance(                                                       ASN1Object.fromByteArray(c.getEncoded())));            }        }        catch (IllegalArgumentException e)        {            throw new CMSException("error processing crls", e);        }        catch (IOException e)        {            throw new CMSException("error processing certs", e);        }        catch (CertificateEncodingException e)        {            throw new CMSException("error encoding certs", e);        }        try        {            for (Iterator it = certStore.getCRLs(null).iterator(); it.hasNext();)            {                X509CRL                 c = (X509CRL)it.next();                crls.add(CertificateList.getInstance(ASN1Object.fromByteArray(c.getEncoded())));            }        }        catch (IllegalArgumentException e)        {            throw new CMSException("error processing crls", e);        }        catch (IOException e)        {            throw new CMSException("error processing crls", e);        }        catch (CRLException e)        {            throw new CMSException("error encoding crls", e);        }    }