for (Iterator i = descriptors.iterator(); i.hasNext();) { FreeTTSSynthesizerModeDesc desc = (FreeTTSSynthesizerModeDesc) i.next(); if (require == null || desc.match(require)) {
Vector domainLocaleVector = new Vector(); for (int i = 0; i < voices.length; i++) { DomainLocale dl = new DomainLocale(voices[i].getDomain(), voices[i].getLocale()); DomainLocale dlentry = (DomainLocale) getItem(domainLocaleVector, dl); if (dlentry == null) { domainLocaleVector.add(dl); dlentry = dl; } dlentry.addVoice(voices[i]); }    for (int i = 0; i < domainLocaleVector.size(); i++) { DomainLocale dl = (DomainLocale) domainLocaleVector.get(i);  FreeTTSSynthesizerModeDesc desc = new FreeTTSSynthesizerModeDesc("FreeTTS " + dl.getLocale().toString() + " " + dl.getDomain() + " synthesizer", dl.getDomain(), dl.getLocale());   voices = dl.getVoices(); for (int j = 0; j < voices.length; j++) { FreeTTSVoice jsapiVoice = new FreeTTSVoice(voices[j], null); desc.addVoice(jsapiVoice); }  if (require == null || desc.match(require)) {
    public EngineList createEngineList(EngineModeDesc require) {	EngineList el = null;	if (descriptors == null) {	    return el;	}	for (Iterator i = descriptors.iterator(); i.hasNext();) {	    FreeTTSSynthesizerModeDesc desc =		(FreeTTSSynthesizerModeDesc) i.next();	    if (require == null || desc.match(require)) {                try {                    desc.validate();                    if (el == null) {                        el = new EngineList();                    }                    el.addElement(desc);                } catch (ValidationException ve) {                    System.err.println(ve.getMessage());                }            }	}        return el;    }