// Setup the extended framework module spec
Module systemModule = injectedSystemModule.getValue();
ModuleIdentifier systemIdentifier = systemModule.getIdentifier();
ModuleLoader systemLoader = systemModule.getModuleLoader();
ModuleSpec.Builder specBuilder = ModuleSpec.build(ModuleIdentifier.create(JBOSGI_PREFIX + ".framework"));
PathFilter acceptAll = PathFilters.acceptAll();
specBuilder.addDependency(DependencySpec.createModuleDependencySpec(acceptAll, acceptAll, systemLoader, systemIdentifier, false));
// Add a dependency on the default framework module
ModuleLoader bootLoader = Module.getBootModuleLoader();
ModuleIdentifier frameworkIdentifier = ModuleIdentifier.create("org.jboss.osgi.framework");