public Reader createScript ( Charset charset ) { String [ ] names = configParam . split ( "\\|" ) ; Properties props = new Properties ( ) ; Locale currentLocale = getLocaleToApply ( ) ; for ( int x = 0 ; x < names . length ; x ++ ) { ResourceBundle bundle ; try { bundle = ResourceBundle . getBundle ( names [ x ] , currentLocale , control ) ; } catch ( MissingResourceException ex ) { // Fixes problems with some servers, e.g. WLS 10 try { bundle = ResourceBundle . getBundle ( names [ x ] , currentLocale , getClass ( ) . getClassLoader ( ) , control ) ; } catch ( Exception e ) { bundle = ResourceBundle . getBundle ( names [ x ] , currentLocale , Thread . currentThread ( ) . getContextClassLoader ( ) , control ) ; } } updateProperties ( bundle , props , charset ) ; } return doCreateScript ( props ) ; }
Create the message resource bundles specified and uses a BundleStringJsonifier to generate the properties .