Map<URI, Repository> repositories = new HashMap<URI, Repository>();
AgentUtils.addRepository(manager, repositories, URI.create("mvn:org.apache.karaf.assemblies.features/standard/" + System.getProperty("karaf-version") + "/xml/features"));
DeploymentBuilder builder = new DeploymentBuilder(manager, null, repositories.values(), 0);
builder.download(new HashSet<String>(Arrays.asList("karaf-framework", "ssh")),
Collections.<String>emptySet(),
Collections.<String>emptySet(),
Collections.<String>emptySet(),
Collections.<String>emptySet(),
Collections.<String>emptySet(),