replay(preferencesService, prefs, repositoriesNode, featuresNode, bundleContext, installedBundle);
FeaturesServiceImpl svc = new FeaturesServiceImpl();
svc.setPreferences(preferencesService);
svc.setBundleContext(bundleContext);
svc.installAllFeatures(uri);
// Uninstalls features with versions.
svc.uninstallAllFeatures(uri);
}