private Optional < ResourceBundle > getResourceBundle ( final String name ) { try { LOGGER . debug ( "Resource bundle: " + name ) ; return Optional . of ( getBundle ( name , new ResourceBundleControl ( getResourceBundleCharset ( ) ) ) ) ; } catch ( final MissingResourceException ex ) { LOGGER . debug ( "No resource bundle could be determined: " + ex . getMessage ( ) ) ; return Optional . empty ( ) ; } }
Returns a resource bundle if available