}
if (includeMvnBasedDescriptors) {
bundles.add(uri);
}
URI repoURI = URI.create(translateFromMaven(uri.replaceAll(" ", "%20")));
Repository repo = new Repository(repoURI, defaultStartLevel);
for (Feature f : repo.getFeatures()) {
featuresMap.put(f.getName() + "/" + f.getVersion(), f);
}
if (resolveDefinedRepositoriesRecursively) {
for (String r : repo.getDefinedRepositories()) {
retrieveDescriptorsRecursively(r, bundles, featuresMap);
}
}
}