if(allBundleProps.containsKey(entry.getKey())) {
if(!allBundleProps.containsKey(entry.getKey())) {
    public static void bundleDidLoad(NSNotification n) {    	NSBundle bundle = (NSBundle) n.object();    	// System.out.println(bundle.name() + ": " + allFrameworks);    	allFrameworks.remove(bundle.name());    	if(allBundleProps == null) {    		allBundleProps = new Properties();    	}    	Properties bundleProps = bundle.properties();    	if(bundleProps != null) {    		for (Iterator iter = bundleProps.entrySet().iterator(); iter.hasNext();) {    			Map.Entry entry = (Map.Entry) iter.next();    			if(allBundleProps.containsKey(entry.getKey())) {    				allBundleProps.setProperty((String)entry.getKey(), (String)entry.getValue());    			}    		}    	}    	if(allFrameworks.size() == 0) {    		Properties mainProps = null;    		if(NSBundle.mainBundle() != null) {    			mainProps = NSBundle.mainBundle().properties();    		}     		if(mainProps == null) {    			String woUserDir = NSProperties.getProperty("webobjects.user.dir");    			if(woUserDir == null) {    				woUserDir = System.getProperty("user.dir");    			}    			mainProps = readProperties(new File(woUserDir, "Contents" + File.separator + "Resources" + File.separator + "Properties"));    		}    		allBundleProps.putAll(mainProps);    		    		String userhome = System.getProperty("user.home");    		Properties userProps = new Properties();    		if(userhome != null && userhome.length() > 0) {    			userProps = readProperties(new File(userhome, "WebObjects.properties"));    		}    		allBundleProps.putAll(userProps);    					Properties props = NSProperties._getProperties();			props.putAll(allBundleProps);			NSProperties._setProperties(props);			NSNotificationCenter.defaultCenter().postNotification(new NSNotification(AllBundlesLoadedNotification, NSKeyValueCoding.NullValue));    	}    }