BeanComponentActivator activator = new BeanComponentActivator();
for (ServiceDescriptor serviceDescriptor : beanDeploymentMetaData.getServiceDescriptors()) {
String serviceName = serviceDescriptor.getServiceName();
ServiceProxyHandler handler = serviceDescriptor.getHandler();
ServiceInterface serviceInterface;
ServiceReference service;
activator.lookupBeanMetaData();
serviceInterface = activator.buildServiceInterface(serviceName);
QName serviceQName = XMLHelper.createQName(domain.getName().getNamespaceURI(), serviceName);
domain.registerService(serviceQName, serviceInterface, handler);
service = domain.registerServiceReference(serviceQName, serviceInterface);
handler.addReference(service);
handler.start();
}
}