}
// Step 2. Setup the module subsystem.
Main main = new EmbeddedMain(cl);
SingleHK2Factory.initialize(cl);
ModulesRegistry modulesRegistry = AbstractFactory.getInstance().createModulesRegistry();
modulesRegistry.setParentClassLoader(cl);
// Step 3. Create NonOSGIGlassFishRuntime
GlassFishRuntime glassFishRuntime = new StaticGlassFishRuntime(main);
logger.logp(Level.FINER, getClass().getName(), "build",
"Created GlassFishRuntime {0} with InstallRoot {1}, Bootstrap Options {2}",