for(String fqnProps : fqnPropsList) addBundle(fqnProps);
// format: "com.elf.foo.LogStrings" try { bundles.add(ResourceBundle.getBundle(fqnProps)); } catch(Exception e) { // should throw ??? }
// grab the first property that matches... for(ResourceBundle bundle : bundles) { try { return bundle.getString(indexString); } catch (Exception e) { // not an error... } } // it is not an error to have no key... return indexString;
indexString = get(indexString); try { MessageFormat mf = new MessageFormat(indexString); return mf.format(objects); } catch(Exception e) { return indexString; }
//for testing purposes return bundles;