public ServiceContainer start(final List<ModelNode> containerDefinition, Collection<ServiceActivator> additionalActivators) throws ExecutionException, InterruptedException, ModuleLoadException {

        final long startTime = System.currentTimeMillis();


        if (java.util.logging.LogManager.getLogManager().getClass().getName().equals("org.jboss.logmanager.LogManager")) {
            try {
                Class.forName(org.jboss.logmanager.handlers.ConsoleHandler.class.getName(), true, org.jboss.logmanager.handlers.ConsoleHandler.class.getClassLoader());

                // Install JBoss Stdio to avoid any nasty crosstalk, after command line arguments are processed.
                StdioContext.install();
                final StdioContext context = StdioContext.create(
                        new NullInputStream(),
                        new LoggingOutputStream(org.jboss.logmanager.Logger.getLogger("stdout"), org.jboss.logmanager.Level.INFO),
                        new LoggingOutputStream(org.jboss.logmanager.Logger.getLogger("stderr"), org.jboss.logmanager.Level.ERROR)
                );
                StdioContext.setStdioContextSelector(new SimpleStdioContextSelector(context));

            } catch (Throwable ignored) {
            }
        }

        Module.registerURLStreamHandlerFactoryModule(Module.getBootModuleLoader().loadModule("org.jboss.vfs"));
        ServerEnvironment serverEnvironment = determineEnvironment(WildFlySecurityManager.getSystemPropertiesPrivileged(), WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.SELF_CONTAINED, startTime);
        final Bootstrap bootstrap = Bootstrap.Factory.newInstance();

        final Bootstrap.Configuration configuration = new Bootstrap.Configuration(serverEnvironment);

        configuration.setConfigurationPersisterFactory(
                new Bootstrap.ConfigurationPersisterFactory() {
                    @Override
                    public ExtensibleConfigurationPersister createConfigurationPersister(ServerEnvironment serverEnvironment, ExecutorService executorService) {

                        ExtensibleConfigurationPersister delegate;
                        delegate = persisterFactory.createConfigurationPersister(serverEnvironment, executorService);

                        configuration.getExtensionRegistry().setWriterRegistry(delegate);
                        return delegate;
                    }
                });


        configuration.setModuleLoader(Module.getBootModuleLoader());

        List<ServiceActivator> activators = new ArrayList<>();
        //activators.add(new ContentProviderServiceActivator(contentProvider));
        activators.addAll(additionalActivators);

        serviceContainer = bootstrap.startup(configuration, activators).get();
        return serviceContainer;
    }
public ServiceContainer start ( final List < ModelNode > containerDefinition , Collection < ServiceActivator > additionalActivators ) throws ExecutionException , InterruptedException , ModuleLoadException { final long startTime = System . currentTimeMillis ( ) ; if ( java . util . logging . LogManager . getLogManager ( ) . getClass ( ) . getName ( ) . equals ( "org.jboss.logmanager.LogManager" ) ) { try { Class . forName ( org . jboss . logmanager . handlers . ConsoleHandler . class . getName ( ) , true , org . jboss . logmanager . handlers . ConsoleHandler . class . getClassLoader ( ) ) ; StdioContext . install ( ) ; final StdioContext context = StdioContext . create ( new NullInputStream ( ) , new LoggingOutputStream ( org . jboss . logmanager . Logger . getLogger ( "stdout" ) , org . jboss . logmanager . Level . INFO ) , new LoggingOutputStream ( org . jboss . logmanager . Logger . getLogger ( "stderr" ) , org . jboss . logmanager . Level . ERROR ) ) ; StdioContext . setStdioContextSelector ( new SimpleStdioContextSelector ( context ) ) ; } catch ( Throwable ignored ) { } } Module . registerURLStreamHandlerFactoryModule ( Module . getBootModuleLoader ( ) . loadModule ( "org.jboss.vfs" ) ) ; ServerEnvironment serverEnvironment = determineEnvironment ( WildFlySecurityManager . getSystemPropertiesPrivileged ( ) , WildFlySecurityManager . getSystemEnvironmentPrivileged ( ) , ServerEnvironment . LaunchType . SELF_CONTAINED , startTime ) ; final Bootstrap bootstrap = Bootstrap . Factory . newInstance ( ) ; final Bootstrap . Configuration configuration = new Bootstrap . Configuration ( serverEnvironment ) ; configuration . setConfigurationPersisterFactory ( new Bootstrap . ConfigurationPersisterFactory ( ) { @ Override public ExtensibleConfigurationPersister createConfigurationPersister ( ServerEnvironment serverEnvironment , ExecutorService executorService ) { ExtensibleConfigurationPersister delegate ; delegate = persisterFactory . createConfigurationPersister ( serverEnvironment , executorService ) ; configuration . getExtensionRegistry ( ) . setWriterRegistry ( delegate ) ; return delegate ; } } ) ; configuration . setModuleLoader ( Module . getBootModuleLoader ( ) ) ; List < ServiceActivator > activators = new ArrayList < > ( ) ; activators . addAll ( additionalActivators ) ; serviceContainer = bootstrap . startup ( configuration , activators ) . get ( ) ; return serviceContainer ; }
The main method.

@param containerDefinition The container definition.