}
protected Kernel newKernel() throws DeploymentManagerCreationException {
// ClassLoader classLoader = DeploymentFactoryBootstrapper.class.getClassLoader();
BundleContext bundleContext = null;
MainBootstrapper bootstrapper = new MainBootstrapper();
try {
bootstrapper.bootKernel(bundleContext);
bootstrapper.loadBootConfiguration(bundleContext);
bootstrapper.loadPersistentConfigurations();
} catch (Exception e) {
throw (DeploymentManagerCreationException) new DeploymentManagerCreationException("See nested").initCause(e);
}
return bootstrapper.getKernel();
}