mvvmfx/src/main/java/de/saxsys/mvvmfx/internal/viewloader/ResourceBundleManager.java
public ResourceBundle mergeListWithGlobal(List<ResourceBundle> bundles) {
		if (globalResourceBundle == null) {
			if (bundles == null) {
				return EMPTY_RESOURCE_BUNDLE;
			} else {
				return reduce(bundles);
			}
		} else {
			if (bundles == null) {
				return new ResourceBundleWrapper(globalResourceBundle);
			} else {
				final List<ResourceBundle> resourceBundles = new ArrayList<>();
				resourceBundles.add(globalResourceBundle);
				resourceBundles.addAll(bundles);
				return reduce(resourceBundles);
			}
		}
	}
public ResourceBundle mergeListWithGlobal(List<ResourceBundle> bundles) {
		if (globalResourceBundle == null) {
			if (bundles == null) {
				return EMPTY_RESOURCE_BUNDLE;
			} else {
				return reduce(bundles);
			}
		} else {
			if (bundles == null) {
				return new ResourceBundleWrapper(globalResourceBundle);
			} else {
				final List<ResourceBundle> resourceBundles = new ArrayList<>();
				resourceBundles.add(globalResourceBundle);
				resourceBundles.addAll(bundles);
				return reduce(resourceBundles);
			}
		}
	}
public ResourceBundle mergeListWithGlobal ( List < ResourceBundle > bundles ) { if ( globalResourceBundle == null ) { if ( bundles == null ) { return EMPTY_RESOURCE_BUNDLE ; } else { return reduce ( bundles ) ; } } else { if ( bundles == null ) { return new ResourceBundleWrapper ( globalResourceBundle ) ; } else { final List < ResourceBundle > resourceBundles = new ArrayList <> ( ) ; resourceBundles . add ( globalResourceBundle ) ; resourceBundles . addAll ( bundles ) ; return reduce ( resourceBundles ) ; } } }
Merges the list of ResourceBundles with the global one (if any).
<p/>
The global resourceBundle has a lower priority then the provided ones. If there is the same key defined in the
global and in one of the provided resourceBundles, the value from the provided resourceBundle will be used.
<p/>
The order of resourceBundles in the list defines the priority for resourceBundles.
ResourceBundles at the start of the list have a <strong>lower</strong> priority compared to bundles
at the end of the list. This means that the last resourceBundle will overwrite values from previous resourceBundles
(including the global resourceBundle (if any)).	 *

@param bundles
a list of resourceBundles that will be merged. <code>null</code> is accepted.
@return the merged resourceBundle.
Merges the list of ResourceBundles with the global one ( if any ) . <p / > The global resourceBundle has a lower priority then the provided ones . If there is the same key defined in the global and in one of the provided resourceBundles the value from the provided resourceBundle will be used . <p / > The order of resourceBundles in the list defines the priority for resourceBundles . ResourceBundles at the start of the list have a <strong > lower< / strong > priority compared to bundles at the end of the list . This means that the last resourceBundle will overwrite values from previous resourceBundles ( including the global resourceBundle ( if any )) . *