public static List getProfilesWhoseBaseIs(String baseName, FormatProfiles profilesroot) { List results = new ArrayList(); EList profiles = profilesroot.getProfile(); for (Iterator it = profiles.iterator(); it.hasNext(); ) { Profile profile = (Profile) it.next(); String profileBase = profile.getBase(); if (profileBase != null && profileBase.equals(baseName)) results.add(profile); } return results; }