throw new CMSException("error processing crls", e);
throw new CMSException("error processing certs", e);
    static List getCertificatesFromStore(CertStore certStore)        throws CertStoreException, CMSException    {        List certs = new ArrayList();        try        {            for (Iterator it = certStore.getCertificates(null).iterator(); it.hasNext();)            {                X509Certificate c = (X509Certificate)it.next();                certs.add(X509CertificateStructure.getInstance(                                                       ASN1Object.fromByteArray(c.getEncoded())));            }            return certs;        }        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);        }    }