is not actually used to render the result.
*/
public String getMessage(Locale aLocale, TimeZone aTimeZone){
String result = null;
Translator translator = BuildImpl.forTranslator();
Formats formats = new Formats(aLocale, aTimeZone);
if( fParams.isEmpty() ){
result = translator.get(fText, aLocale);
}
else {
String localizedPattern = translator.get(fText, aLocale);
List<String> formattedParams = new ArrayList<String>();
for (Object param : fParams){
if ( param instanceof RequestParameter ){
RequestParameter reqParam = (RequestParameter)param;
String translatedParamName = translator.get(reqParam.getName(), aLocale);
formattedParams.add( translatedParamName );
}
else {
//this will escape any special HTML chars in params :
formattedParams.add( formats.objectToTextForReport(param).toString() );
}
}
result = populateParamsIntoCustomFormat(localizedPattern, formattedParams);
}
return result;