Vector outProfiles = new Vector();
for (int i = 0,j = profiles.size(); i < j; i++) {
if (((PresetClassProfile) profiles.get(i)).getPrefix() != null)
outProfiles.add(profiles.get(i));
}
return (PresetClassProfile[]) ((Vector) outProfiles.clone()).toArray(new PresetClassProfile[outProfiles.size()]);
}
public static PresetModel getMostDerivedPresetInstance(PresetModel baseClass, String name) throws InstantiationException, IllegalAccessException {
Class[] ca = getAllPresetClasses(name);
Class candidate = baseClass.getClass();