if (sDataObjectCount < sData.getCertificates().size()) { return getCertificate(); }
return getCertificate();
    private X509AttributeCertificate getCertificate()        throws IOException    {        try        {            return new X509V2AttributeCertificate(                      ASN1Sequence.getInstance(sData.getCertificates().getObjectAt(sDataObjectCount++)).getEncoded());        }        catch (IllegalArgumentException e)       // could be an attribute certificate        {            if (sDataObjectCount < sData.getCertificates().size())            {                return getCertificate();            }        }        return null;    }