ID (@NotNull Map<String, String> map) { ID dict = invoke("NSMutableDictionary", "dictionaryWithCapacity:", map.size()); for (Map.Entry<String, String> entry : map.entrySet()) { invoke(dict, "setObject:forKey:", nsString(entry.getValue()), nsString(entry.getKey())); } return dict; }