if("edit".equals(context.task())) { componentLevelKeys.addObject("isMandatory");
if("edit".equals(_context.task())) { _componentLevelKeys.addObject("isMandatory");
    public ERD2WContextDictionary(String pageConfigurationName, NSArray pageKeys, NSArray componentKeys) {        this.pageConfiguration = pageConfigurationName;        context = new D2WContext();        context.setDynamicPage(pageConfiguration);        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"});        } 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();        allKeys.setObjectForKey(components, "components");        allKeys.setObjectForKey(editors, "editors");        for(Enumeration e = NSBundle.frameworkBundles().objectEnumerator(); e.hasMoreElements(); ) {            NSBundle bundle = (NSBundle)e.nextElement();            NSDictionary dict;            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"));                }            }            if(dict != null) {                dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle);                if(dict.objectForKey("components") != null) {                    components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components"));                }                if(dict.objectForKey("editors") != null) {                    editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors"));                }            }        }    }