Bug 28638 [Preferences] Import Preferences: Crashes on eclipse
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java
readResourceBundle(bundle, WSLocation);
				} else
					throw osException;
			}
		}
	}
	/**
	 * Read the resource bundle at location. Look for a file with the
	 * extension _os_ws first, then _os then just the name.
	 * @param location - String - the location of the file.
	 */
	private void readResourceBundle(String location, ClassLoader loader) {
		String osname = System.getProperty("os.name").trim(); 
		String wsname = SWT.getPlatform();
		osname = StringConverter.removeWhiteSpaces(osname).toLowerCase();
		wsname = StringConverter.removeWhiteSpaces(wsname).toLowerCase();
		String OSLocation = location;
		String WSLocation = location;
		ResourceBundle bundle = null;
		if (osname != null) {
			OSLocation = location + "_" + osname; 
			if (wsname != null)
				WSLocation = OSLocation + "_" + wsname; 
		}
		try {
			bundle =
				ResourceBundle.getBundle(
					WSLocation,
					Locale.getDefault(),
					loader);