*/
public synchronized void stop(StopContext context) {
log.tracef("Uninstalling deployment: %s", deployment);
try {
BundleManager bundleManager = injectedBundleManager.getValue();
bundleManager.uninstallBundle(deployment);
ServiceController<?> controller = context.getController();
ServiceContainer serviceContainer = controller.getServiceContainer();
controller.setMode(Mode.REMOVE);