private IResourceStream findResourceStream(final Class<?> scope, final String fileName) {
// Create the base path
final String path = Strings.beforeLast(scope.getName(), '.').replace('.', '/') + '/'
+ Strings.beforeLast(fileName, '.');
// Iterator over all the combinations
final ResourceNameIterator iter = new ResourceNameIterator(path, _style, _locale, Strings.afterLast(
fileName, '.'));
IResourceStream resourceStream = null;
while (resourceStream == null && iter.hasNext()) {
final String resourceName = iter.next();
resourceStream = Application.get().getResourceSettings().getResourceStreamLocator()
.locate(scope, resourceName, _style, _locale, null);
}
if (resourceStream == null) {