public static String getString ( final String key , final Locale msgLocale ) { /*read message resource file.*/ ResourceBundle RESOURCE_BUNDLE = ResourceBundle . getBundle ( BUNDLE_NAME , msgLocale ) ; try { return RESOURCE_BUNDLE . getString ( key ) ; } catch ( final MissingResourceException e ) { return key ; } }
get specific message by key and locale .