}
private List<Requirement> computeRequirements(SubsystemManifest manifest) throws ResolutionException {
if (isComposite(manifest))
return manifest.toRequirements(this);
SubsystemContentHeader header = manifest.getSubsystemContentHeader();
if (header == null)
return Collections.emptyList();
// TODO Need the system repository in here. Preferred provider as well?
LocalRepository localRepo = new LocalRepository(resources);
RepositoryServiceRepository serviceRepo = new RepositoryServiceRepository(Activator.getInstance().getBundleContext());
CompositeRepository compositeRepo = new CompositeRepository(localRepo, serviceRepo);
List<Requirement> requirements = header.toRequirements(this);
List<Resource> resources = new ArrayList<Resource>(requirements.size());
for (Requirement requirement : requirements) {
Collection<Capability> capabilities = compositeRepo.findProviders(requirement);
if (capabilities.isEmpty())
continue;