code: @SuppressWarnings("deprecation")
      public static EmbeddedServerReference createHostController(ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs) {
          EmbeddedManagedProcess emp = EmbeddedProcessFactory.createHostController(moduleLoader, jbossHomeDir, cmdargs);
          return new EmbeddedServerReference(emp, true);
      }
docs: Create an embedded host controller with an already established module loader.
  
  @param moduleLoader the module loader. Cannot be {@code null}
  @param jbossHomeDir the location of the root of server installation. Cannot be {@code null} or empty.
  @param cmdargs      any additional arguments to pass to the embedded server (e.g. -b=192.168.100.10)
  @return the running host controller Will not be {@code null}