return null;
}
try
{
final ResourceBundleFactory resourceBundleFactory =
runtime.getResourceBundleFactory();
final ResourceBundle bundle =
resourceBundleFactory.getResourceBundle(resourceId);
// update the format string, if neccessary ...
if (ObjectUtilities.equal(formatKey, appliedFormatKey) == false)
{
final String newFormatString = bundle.getString(formatKey);
messageFormatSupport.setFormatString(newFormatString);
appliedFormatKey = formatKey;
}
messageFormatSupport.setLocale(resourceBundleFactory.getLocale());
return messageFormatSupport.performFormat(runtime.getDataRow());
}
catch (Exception e)
{
ResourceMessageFormatFilter.logger.info("Failed to format the value for resource-id " + resourceId, e);