List<org.osgi.service.repository.Repository> repos = new ArrayList<org.osgi.service.repository.Repository>();
repos.add(new StaticRepository(resources.values()));
repos.addAll(resourceRepos);
ResolverImpl resolver = new ResolverImpl(new Slf4jResolverLog(LOGGER));
ResolveContext context = new ResolveContextImpl(
Collections.<Resource>singleton(requirements),
Collections.<Resource>emptySet(),
new AggregateRepository(repos),
resolveOptionalImports);