Map<String, Set<Bundle>> unmanagedBundles = apply(diff(dstate.bundlesPerRegion, dstate.state.managedBundles),
map(dstate.bundles));
// Resolve
SubsystemResolver resolver = new SubsystemResolver(manager);
resolver.prepare(
dstate.features.values(),
request.requirements,
apply(unmanagedBundles, adapt(BundleRevision.class))
);
Set<String> prereqs = resolver.collectPrerequisites();