ResourceBundle ( @NotNull Supplier<? extends @NotNull ResourceBundle> firstTry, @NotNull ClassLoader loader, @NotNull String pathToBundle ) { try { return firstTry.get(); } catch (MissingResourceException e) { LOG.info("Cannot load resource bundle from *.properties file, falling back to slow class loading: " + pathToBundle); ResourceBundle.clearCache(loader); return ResourceBundle.getBundle(pathToBundle, Locale.getDefault(), loader); } }