code: public static HostController createHostController(String jbossHomePath, String modulePath, String[] systemPackages, String[] cmdargs) {
          if (jbossHomePath == null || jbossHomePath.isEmpty()) {
              throw EmbeddedLogger.ROOT_LOGGER.invalidJBossHome(jbossHomePath);
          }
          File jbossHomeDir = new File(jbossHomePath);
          if (!jbossHomeDir.isDirectory()) {
              throw EmbeddedLogger.ROOT_LOGGER.invalidJBossHome(jbossHomePath);
          }
          return createHostController(
                  Configuration.Builder.of(jbossHomeDir)
                          .setModulePath(modulePath)
                          .setSystemPackages(systemPackages)
                          .setCommandArguments(cmdargs)
                          .build()
          );
      }
docs: Create an embedded host controller.
  
  @param jbossHomePath the location of the root of the host controller installation. Cannot be {@code null} or empty.
  @param modulePath the location of the root of the module repository. May be {@code null} if the standard
  location under {@code jbossHomePath} should be used
  @param systemPackages names of any packages that must be treated as system packages, with the same classes
  visible to the caller's classloader visible to host-controller-side classes loaded from
  the server's modular classloader
  @param cmdargs any additional arguments to pass to the embedded host controller (e.g. -b=192.168.100.10)
  @return the server. Will not be {@code null}