}
public IIDEntry[] getAssociates(String key) {
if (key == null)
return new IIDEntry[0];
ISecurePreferences associateNode = prefs.node(key);
String[] childrenNames = associateNode.childrenNames();
SortedMap results = new TreeMap();
for (int i = 0; i < childrenNames.length; i++) {
addAssociateFromName(childrenNames[i], results);
}
return (IIDEntry[]) results.values().toArray(new IIDEntry[] {});