log.info("Loading file: " + file);
    protected static NSDictionary dictionaryFromFile(File file) {        NSDictionary model = null;        try {            model = Services.dictionaryFromFile(file);            NSArray rules = (NSArray)model.objectForKey("rules");            Enumeration e = rules.objectEnumerator();            boolean patchRules = ERXProperties.booleanForKeyWithDefault("er.directtoweb.ERXD2WModel.patchRules", true);            while(e.hasMoreElements()) {                NSMutableDictionary dict = (NSMutableDictionary)e.nextElement();                if(patchRules) {                    if(Rule.class.getName().equals(dict.objectForKey("class"))) {                        dict.setObjectForKey(_PatchedRule.class.getName(), "class");                    }                }            }        } catch (Throwable throwable) {            NSLog.err.appendln("****** DirectToWeb: Problem reading file "                               + file + " reason:" + throwable);            if (NSLog.debugLoggingAllowedForLevelAndGroups(1, 40L)) {                NSLog.err.appendln("STACKTRACE:");                NSLog.err.appendln(throwable);            }            throw NSForwardException._runtimeExceptionForThrowable(throwable);        }        return model;    }