ResourceBundle bundle = ResourceBundle.getBundle(bundleName, locale);
ResourceBundle bundle = null; try { bundle = ResourceBundle.getBundle(bundleName, locale); } catch (MissingResourceException e) {  }
    private static ResourceBundle locateBundle(final String bundleName, final String lang) {        /* Validate parameters. */        if (bundleName == null || bundleName.equals("")) {            throw new IllegalArgumentException("bundleName must be a non-empty string.");        }        if (lang == null || lang.equals("")) {            throw new IllegalArgumentException("lang must be a non-empty string.");        }        /* Find fallback resource bundle. */        ResourceBundle fallback;        try {            fallback = ResourceBundle.getBundle(bundleName, new Locale("bogus"));        } catch (MissingResourceException e) {            fallback = null;        }        Locale locale = new Locale(lang);        ResourceBundle bundle = ResourceBundle.getBundle(bundleName, locale);        if (bundle != fallback) {            return bundle;        }        /* Check if the fallback is actually requested. */        if (bundle == fallback && locale.getLanguage().equals(Locale.getDefault().getLanguage())) {            return bundle;        }        /* No bundle found. */        return null;    }