Code example for MessageFormat

0
	 *            The message format, formatted according to 
	 *            {@link MessageFormat} conventions. 
	 */ 
	public void addMessage(String key, String messageFormat)
	{ 
		this.messages.put(key, new MessageFormat(messageFormat));
	} 
 
	@Override 
	protected MessageFormat getMessageInternal(String key)
	{ 
		if (messages.containsKey(key))
		{ 
			return messages.get(key);
		} 
		return super.getMessageInternal(key);
	} 
}