private ResourceBundle loadBundle ( ) { String pkg = clazz . getPackage ( ) . getName ( ) ; Locale locale = getLocale ( ) ; return PropertyResourceBundle . getBundle ( pkg + ".messages" , locale , clazz . getClassLoader ( ) , new ResourceBundle . Control ( ) { //$NON-NLS-1$ @ Override public List < String > getFormats ( String baseName ) { return FORMATS ; } } ) ; }
Loads the resource bundle .