if (sDataObjectCount < sData.getCertificates().size()) { return getCertificate(); }
return getCertificate();
    private Certificate getCertificate()    {        try        {            return new X509CertificateObject(                            X509CertificateStructure.getInstance(                                    sData.getCertificates().getObjectAt(sDataObjectCount++)));        }        catch (IllegalArgumentException e)       // could be an attribute certificate        {            if (sDataObjectCount < sData.getCertificates().size())            {                return getCertificate();            }        }        return null;    }