private String translate(final Object messageObject) {
		if (messageObject instanceof Message) {
			Message message = (Message) messageObject;
			return I18nUtilities.format(locale, message.getMessage(), (Object[]) message.getArgs());
		} else if (messageObject != null) {
			return I18nUtilities.format(locale, messageObject.toString());
		}

		return null;
	}
private String translate ( final Object messageObject ) { if ( messageObject instanceof Message ) { Message message = ( Message ) messageObject ; return I18nUtilities . format ( locale , message . getMessage ( ) , ( Object [ ] ) message . getArgs ( ) ) ; } else if ( messageObject != null ) { return I18nUtilities . format ( locale , messageObject . toString ( ) ) ; } return null ; }
Translates the given message into the appropriate user text. This takes the current locale into consideration, if
set.

@param messageObject the message to translate.
@return the translated message.