getInterfaceName());
ctx.registerExternalEndpoint(activated);
}
public synchronized void stop() throws Exception {
ServiceMixComponent component = getServiceUnit().getComponent();
ComponentContext ctx = component.getComponentContext();
if (activated != null) {
ServiceEndpoint se = activated;
activated = null;
ctx.deregisterExternalEndpoint(se);
}