getFormattedMessage
public String getFormattedMessage(MessageDefinition messageDefinition)
Create a formatted message from a message definition instance. This instance
contains the unique message identifier, the default message template and the
parameters to insert into it. The Audit Log controls whether to use the default
message template or substitute it for a version in a different language.
The method is public to allow external components to format messages - for example,
from exceptions.
- Parameters:
messageDefinition - details about the message to format.
- Returns:
- formatted message