// FIXME: [rfeng] We need to check if a corresponding endpoint has been exported
try {
Contribution contribution = introspector.introspect(reference, properties);
if (contribution != null) {
NodeConfiguration configuration = nodeFactory.createNodeConfiguration();
if (domainRegistry != null) {
configuration.setDomainRegistryURI(domainRegistry);
}
if (domainURI != null) {
configuration.setDomainURI(domainURI);
}
configuration.setURI(contribution.getURI());
// configuration.getExtensions().add(reference.getBundle());
Component component = contribution.getDeployables().get(0).getComponents().get(0);
ComponentService service = component.getServices().get(0);
service.getExtensions().addAll(getOSGiProperties(registry, reference));
service.getExtensions().add(createOSGiProperty(registry,