Code example for PropertyResourceBundle

0
				throw new RuntimeException("file handle for root ResourceBundle should be specified");
 
			bundlesCache = new HashMap<Locale, ResourceBundle>();
 
			try { 
				rootResourceBundle = new PropertyResourceBundle(rootFileHandle.read());
			} catch (IOException e) {
				throw new RuntimeException("failed to create root ResourceBundle from " + rootFileHandle.name(), e);
			} 
 
			Set<Locale> locales = fileHandles.keySet();
			for (Locale locale : locales) {
				FileHandle fileHandle = fileHandles.get(locale);
				 
				if (equalsFileHandle(fileHandle, rootFileHandle)) {
					bundlesCache.put(locale, rootResourceBundle);
					continue; 
				} 
				 
				try {