if (System.getSecurityManager() != null) {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
for (int i = 0; i < importedBundles.length; i++) {
final ImportedBundle importedBundle = importedBundles[i];
if (!bundle.equals(importedBundle.getBundle())) {
findImportedBundleMatchingResource(importedBundle, rootDirPath, path, foundPaths);
}
}
return null;
}
});
}
else {
for (int i = 0; i < importedBundles.length; i++) {
final ImportedBundle importedBundle = importedBundles[i];
if (!bundle.equals(importedBundle.getBundle())) {
findImportedBundleMatchingResource(importedBundle, rootDirPath, path, foundPaths);
}
}
}