Collection<String> resources = bundleWiring.listResources(
"/", filePattern, BundleWiring.LISTRESOURCES_RECURSE );
for (String resource : resources) {
try {
// TODO: Is using 'resource' as the name correct? Check what NativeScanner uses.
files.add( new NamedInputStream( resource, persistenceBundle.getResource( resource ).openStream() ) );
}
catch (Exception e) {
LOG.unableToLoadScannedClassOrResource( e );
}
}