public synchronized void addResourceBundle(String bundleName){
  if (bundleName == null) {
    return;
  }
  if (resourceBundles == null) {
    resourceBundles=new Vector<String>(5);
  }
  if (!resourceBundles.contains(bundleName)) {
    resourceBundles.add(bundleName);
    resourceCache.clear();
  }
}

public synchronized void addResourceBundle ( String bundleName ) { if ( bundleName == null ) { return ; } if ( resourceBundles == null ) { resourceBundles = new Vector < String > ( 5 ) ; } if ( ! resourceBundles . contains ( bundleName ) ) { resourceBundles . add ( bundleName ) ; resourceCache . clear ( ) ; } }
adds a resource bundle to the list of resource bundles that are searched for localized values . resource bundles are searched in the reverse order they were added . in other words , the most recently added bundle is searched first .
