nameRegistrationAuthorities[i] = (GeneralName)generalNameSeq.getObjectAt(i);
nameRegistrationAuthorities[i] = GeneralName.getInstance(generalNameSeq.getObjectAt(i));
    public SemanticsInformation(ASN1Sequence seq)    {        Enumeration e = seq.getObjects();        if (seq.size() < 1)        {             throw new IllegalArgumentException("no objects in SemanticsInformation");        }                Object object = e.nextElement();        if (object instanceof DERObjectIdentifier)        {            semanticsIdentifier = DERObjectIdentifier.getInstance(object);            if (e.hasMoreElements())            {                object = e.nextElement();            }            else            {                object = null;            }        }                if (object != null)        {            ASN1Sequence generalNameSeq = ASN1Sequence.getInstance(object);            nameRegistrationAuthorities = new GeneralName[generalNameSeq.size()];            for (int i= 0; i< generalNameSeq.size();i++)            {                nameRegistrationAuthorities[i] = (GeneralName)generalNameSeq.getObjectAt(i);            }         }    }