public static String getString(final String key) {

		String ret = '!' + key + '!';
		if (key != null) {
			String[] els = key.split("\\.", 2);
			if (els.length == 2) {
				String resourceName = els[0];
				ResourceBundle resource = getInstance().resources.get(resourceName);
				if (resource != null) {
					try {
						ret = resource.getString(els[1]);
					} catch (MissingResourceException e) {
						logger.debug("No resource for the key [{}]", key);
					}
				} else {
					logger.debug("No resource for [{}]", resource);
				}
			}
		}
		return ret;
	}
public static String getString ( final String key ) { String ret = '!' + key + '!' ; if ( key != null ) { String [ ] els = key . split ( "\\." , 2 ) ; if ( els . length == 2 ) { String resourceName = els [ 0 ] ; ResourceBundle resource = getInstance ( ) . resources . get ( resourceName ) ; if ( resource != null ) { try { ret = resource . getString ( els [ 1 ] ) ; } catch ( MissingResourceException e ) { logger . debug ( "No resource for the key [{}]" , key ) ; } } else { logger . debug ( "No resource for [{}]" , resource ) ; } } } return ret ; }
Get message from the key.

@param key
a key, formatted like <i>projectname</i>.myrealkey
@return the corresponding message, or !key! if not found