// [TODO] Differentiate beetween user data and persisted bundles
props.put(Constants.FRAMEWORK_STORAGE_CLEAN, Constants.FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT);
// Get {@link ModuleLoader} for the OSGi layer
bundleManager = new BundleManager(props);
ModuleManagerPlugin plugin = bundleManager.getPlugin(ModuleManagerPlugin.class);
ModuleLoader osgiModuleLoader = plugin.getModuleLoader();
// Register the {@link ModuleLoader} with the {@link ClassifyingModuleLoaderService}
ServiceController<?> controller = container.getRequiredService(ClassifyingModuleLoaderService.SERVICE_NAME);
ClassifyingModuleLoaderService moduleLoaderService = (ClassifyingModuleLoaderService) controller.getValue();
Value<ModuleLoader> value = new ImmediateValue<ModuleLoader>(osgiModuleLoader);