// What would be cool is if we could maintain a cache of bundle id + locale -->
// Resource. That would optimize quite a bit of this; may need to use an alternative to
// LocalizedNameGenerator.
Resource propertiesResource = bundle.getBaseResource().withExtension("properties");
List<Resource> localizations = CollectionFactory.newList();
for (String localizedFile : new LocalizedNameGenerator(propertiesResource.getFile(), locale))
{
Resource localized = propertiesResource.forFile(localizedFile);
localizations.add(localized);
}
// We need them in least-specific to most-specific order, the opposite