}
}
private Map<String, BundleInternal> filter(final Map<String, BundleInternal> candidates) {
Map<String, BundleInternal> filtered = new HashMap<String, OsgiBundleEntry.BundleInternal>();
for (String selected : new ResourceScanner(new ResourceLister() {
public Set<String> list(final String path) {
Set<String> set = new HashSet<String>();
for (Entry<String, BundleInternal> entry : files.entrySet()) {
if (entry.getKey().startsWith(path)) {
set.add(entry.getKey() + (entry.getValue().isDirectory() ? '/' : ""));