code: public static void main(String[] args) {
          try {
              if (java.util.logging.LogManager.getLogManager().getClass().getName().equals("org.jboss.logmanager.LogManager")) {
                  // Make sure our original stdio is properly captured.
                  try {
                      Class.forName(org.jboss.logmanager.handlers.ConsoleHandler.class.getName(), true, org.jboss.logmanager.handlers.ConsoleHandler.class.getClassLoader());
                  } catch (Throwable ignored) {
                  }
                  // 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));
              }
  
              Module.registerURLStreamHandlerFactoryModule(Module.getBootModuleLoader().loadModule("org.jboss.vfs"));
              ServerEnvironmentWrapper serverEnvironmentWrapper = determineEnvironment(args, WildFlySecurityManager.getSystemPropertiesPrivileged(),
                      WildFlySecurityManager.getSystemEnvironmentPrivileged(), ServerEnvironment.LaunchType.STANDALONE,
                      Module.getStartTime());
              if (serverEnvironmentWrapper.getServerEnvironment() == null) {
                  if (serverEnvironmentWrapper.getServerEnvironmentStatus() == ServerEnvironmentWrapper.ServerEnvironmentStatus.ERROR) {
                      abort(null);
                  } else {
                      SystemExiter.safeAbort();
                  }
              } else {
                  final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
                  final Bootstrap.Configuration configuration = new Bootstrap.Configuration(serverEnvironmentWrapper.getServerEnvironment());
                  configuration.setModuleLoader(Module.getBootModuleLoader());
                  bootstrap.bootstrap(configuration, Collections.<ServiceActivator>emptyList()).get();
                  return;
              }
          } catch (Throwable t) {
              abort(t);
          }
      }
docs: The main method.
  
  @param args the command-line arguments