Properties result = parent;
if (!Tapestry.isBlank(language))
{
Locale l = new Locale(language, "");
MultiKey key = buildKey(baseResourceLocation, l);
result = (Properties) _cache.get(key);
if (result == null)
result = readProperties(baseResourceLocation, baseName, l, parent);
_cache.put(key, result);
parent = result;
}
else
language = "";
if (Tapestry.isNonBlank(country))
{
Locale l = new Locale(language, country);
MultiKey key = buildKey(baseResourceLocation, l);
result = (Properties) _cache.get(key);
if (result == null)
result = readProperties(baseResourceLocation, baseName, l, parent);
_cache.put(key, result);
parent = result;
}
else
country = "";
if (Tapestry.isNonBlank(variant))
{
Locale l = new Locale(language, country, variant);
MultiKey key = buildKey(baseResourceLocation, l);
result = (Properties) _cache.get(key);
if (result == null)
result = readProperties(baseResourceLocation, baseName, l, parent);