{
return null;
}
// Load the properties associated with the path
IPropertiesFactory propertiesFactory = Application.get()
.getResourceSettings()
.getPropertiesFactory();
while (true)
{
Package pkg = clazz.getPackage();
String packageName = (pkg == null) ? "" : pkg.getName();
packageName = packageName.replace('.', '/');
do
{
// Create the base path
String path = filename;
if (packageName.length() > 0)
{
path = packageName + "/" + path;
}
// Iterator over all the combinations
ResourceNameIterator iter = newResourceNameIterator(path, locale, style, variation);
while (iter.hasNext())
{
String newPath = iter.next();
Properties props = propertiesFactory.load(clazz, newPath);
if (props != null)
{
// Lookup the value
String value = props.getString(key);
if (value != null)