while(iter.hasNext()){ availablecas = availablecas + EndEntityProfile.SPLITCHAR + ((Integer) iter.next()).toString(); }  profile.setValue(EndEntityProfile.AVAILCAS, 0,availablecas); profile.setRequired(EndEntityProfile.AVAILCAS, 0,true);  profiles.addEndEntityProfile(name, profile);
profiles.addEndEntityProfile(name, profile);
    public void addEndEntityProfile(String name) throws Exception{        EndEntityProfile profile = new EndEntityProfile();        Iterator iter = this.informationmemory.getAuthorizedCAIds().iterator();        String availablecas = "";        if(iter.hasNext())            availablecas = ((Integer) iter.next()).toString();                  while(iter.hasNext()){            availablecas = availablecas + EndEntityProfile.SPLITCHAR + ((Integer) iter.next()).toString();             }                profile.setValue(EndEntityProfile.AVAILCAS, 0,availablecas);        profile.setRequired(EndEntityProfile.AVAILCAS, 0,true);                 profiles.addEndEntityProfile(name, profile);    }