.setImplementation(new ServiceProvider())
.setInterface(OriginalService.class.getName(), null);
Component consumer = m.createComponent()
.setImplementation(new ServiceConsumer(e))
.add(m.createServiceDependency()
.setService(AdaptedService.class)
.setCallbacks("add", null, "remove", "swap")
);
Component adapter = m.createAdapterService(OriginalService.class, null, "add", null, "remove", "swap")
.setInterface(AdaptedService.class.getName(), null)