/** * Retrieve the StringManager for a list of Locales. The first StringManager * found will be returned. * * @param packageName The package for which the StringManager is required * @param requestedLocales the list of Locales * * @return the found StringManager or the default StringManager */ public static StringManager getManager(String packageName, Enumeration<Locale> requestedLocales) { while (requestedLocales.hasMoreElements()) { Locale locale = requestedLocales.nextElement(); StringManager result = getManager(packageName, locale); if (result.getLocale().equals(locale)) { return result; } } // Return the default return getManager(packageName); } }