protected Map getLocalizedString (String stringTableName,
String componentName,
Locale locale)
{
ResourceService resourceService = ResourceService.getService();
// restrict the locale to what we can use
locale = resourceService.getRestrictedLocale(locale);
Map componentTable = null;
Map stringTable = resourceService.stringTable(stringTableName, locale, this);
if (stringTable == null) {
// "Null string table returned in Resource Service"
Log.util.error(2962, stringTable);
// prevent the same error from happening
resourceService.cacheStringTable(stringTableName,
locale,
MapUtil.map(),
this);
}
else {