public final class OSGiRuntimeActivator implements BundleActivator {
@Override
public void start(BundleContext context) throws Exception {
BundleContext syscontext = context.getBundle(0).getBundleContext();
PropertiesProvider propsProvider = new BundleContextPropertiesProvider(syscontext);
Runtime runtime = RuntimeLocator.createRuntime(new OSGiRuntimeFactory(syscontext), propsProvider);
runtime.init();
}