resolveBundle(phaseContext, depUnit, bundle);
}
private void resolveBundle(DeploymentPhaseContext phaseContext, DeploymentUnit depUnit, XBundle bundle) {
XBundleRevision brev = bundle.getBundleRevision();
XEnvironment env = depUnit.getAttachment(OSGiConstants.ENVIRONMENT_KEY);
XResolver resolver = depUnit.getAttachment(OSGiConstants.RESOLVER_KEY);
BundleManager bundleManager = depUnit.getAttachment(OSGiConstants.BUNDLE_MANAGER_KEY);
Set<XBundleRevision> mandatoryResources = Collections.singleton(brev);
Set<XBundleRevision> optionalResources = getOptionalResources(bundleManager, brev);
XResolveContext context = resolver.createResolveContext(env, mandatoryResources, optionalResources);