if(choices != null) {
NSMutableArray keyChoices = new NSMutableArray();
if(choices instanceof NSArray) {
for(Enumeration e = ((NSArray)choices).objectEnumerator(); e.hasMoreElements(); ) {
NSDictionary dict = (NSDictionary)e.nextElement();
String key = (String)dict.allKeys().lastObject();
String value = (String)dict.objectForKey(key);
keyChoices.addObject(new ERXKeyValuePair(key, ERXLocalizer.currentLocalizer().localizedStringForKeyWithDefault(value)));
}
} else if(choices instanceof NSDictionary) {
NSArray keys = ((NSDictionary)choices).allKeys();