brev.addAttachment(ContextActivator.class, activator);
// Start the context when the bundle will get started automatically
Deployment deployment = bundle.adapt(Deployment.class);
if (deployment.isAutoStart()) {
activator.startAsync();
}
}
}
@Override