Map<QName, List<String>> bs = new HashMap<QName, List<String>>();
if (endpointsIncludeDomainName) {
bs.put(new QName("default"), Arrays.asList(new String[]{domainRegistry.getDomainName()}));
}
Monitor monitor = deployer.createMonitor();
builtComposite = deployer.build(contributions, dependedOnContributions, bs, monitor);
monitor.analyzeProblems();
// TODO: Ideally deployer.build would set the name and uri to what this needs
builtComposite.setName(composite.getName());
builtComposite.setURI(composite.getURI());
builtComposite.setContributionURI(composite.getContributionURI());