public static HostController createHostController(ModuleLoader moduleLoader, File jbossHomeDir, String[] cmdargs) {
        return createHostController(
                Configuration.Builder.of(jbossHomeDir)
                        .setModuleLoader(moduleLoader)
                        .setCommandArguments(cmdargs)
                        .build()
        );
    }
public static HostController createHostController ( ModuleLoader moduleLoader , File jbossHomeDir , String [ ] cmdargs ) { return createHostController ( Configuration . Builder . of ( jbossHomeDir ) . setModuleLoader ( moduleLoader ) . setCommandArguments ( cmdargs ) . build ( ) ) ; }
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 host controller (e.g. -b=192.168.100.10)
@return the running host controller Will not be {@code null}