if(componentKeys == null) { _componentLevelKeys = new NSMutableArray(new Object[] {"componentName", "customComponentName", "displayNameForProperty", "propertyKey"}); } else {
NSArray keys = new NSMutableArray(new Object[] {"componentName", "customComponentName", "displayNameForProperty", "propertyKey"}); _componentLevelKeys = new NSMutableArray(); if(componentKeys != null) {
    public ERD2WContextDictionary(String pageConfigurationName, NSArray pageKeys, NSArray componentKeys) {        _pageConfiguration = pageConfigurationName;        _context = ERD2WContext.newContext();        _context.setDynamicPage(_pageConfiguration);        _context.setTask(_context.task());        _context.setEntity(_context.entity());        if(pageKeys == null) {            _pageLevelKeys = new NSMutableArray(new Object[] {"pageWrapperName", "displayPropertyKeys"});        } else {            _pageLevelKeys = pageKeys.mutableClone();        }        if(componentKeys == null) {            _componentLevelKeys = new NSMutableArray(new Object[] {"componentName", "customComponentName",                     "displayNameForProperty", "propertyKey"});        } else {            _componentLevelKeys = componentKeys.mutableClone();        }        if("edit".equals(_context.task())) {            _componentLevelKeys.addObject("isMandatory");        }        if("list".equals(_context.task())) {            _componentLevelKeys.addObject("propertyIsSortable");            _componentLevelKeys.addObject("sortKeyForList");        }        _allKeys = new NSMutableDictionary();                NSMutableDictionary components = new NSMutableDictionary();        NSMutableDictionary editors = new NSMutableDictionary();        NSMutableArray bundles = NSBundle.frameworkBundles().mutableClone();        bundles.addObject(NSBundle.mainBundle());                for(Enumeration e = bundles.objectEnumerator(); e.hasMoreElements(); ) {            NSBundle bundle = (NSBundle)e.nextElement();            NSDictionary dict;            String path = bundle.resourcePathForLocalizedResourceNamed("d2wclientConfiguration.plist", null);            if(path != null) {                dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);                if(dict != null) {                    if(dict.objectForKey("components") != null) {                        components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));                    }                    if(dict.objectForKey("editors") != null) {                        editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));                    }                }            }        }        _allKeys.setObjectForKey(components, "components");        _allKeys.setObjectForKey(editors, "editors");    }