Buggy code:
public class DomainModelControllerService extends AbstractControllerService implements DomainController , UnregisteredHostChannelRegistry { public static final ServiceName SERVICE_NAME = SERVICE_NAME_BASE . append ( "model" , "controller" ) ; private final HostControllerConfigurationPersister configurationPersister ; private final HostControllerEnvironment environment ; private final LocalHostControllerInfoImpl hostControllerInfo ; private final FileRepository localFileRepository ; private final RemoteFileRepository remoteFileRepository ; private final InjectedValue < ExecutorService > injectedExecutorService = new InjectedValue < ExecutorService > ( ) ; private final InjectedValue < ProcessControllerConnectionService > injectedProcessControllerConnection = new InjectedValue < ProcessControllerConnectionService > ( ) ; private final Map < String , ProxyController > hostProxies ; private final Map < String , ProxyController > serverProxies ; private final PrepareStepHandler prepareStepHandler ; private ManagementResourceRegistration modelNodeRegistration ; private volatile MasterDomainControllerClient masterDomainControllerClient ; private final Map < String , ManagementChannel > unregisteredHostChannels = new HashMap < String , ManagementChannel > ( ) ; private final Map < String , ProxyCreatedCallback > proxyCreatedCallbacks = new HashMap < String , ProxyCreatedCallback > ( ) ; private final ExecutorService proxyExecutor = Executors . newCachedThreadPool ( ) ; private volatile ServerInventory serverInventory ; public static ServiceController < ModelController > addService ( final ServiceTarget serviceTarget , final HostControllerEnvironment environment , final ControlledProcessState processState ) { } private DomainModelControllerService ( final HostControllerEnvironment environment , final ControlledProcessState processState , final LocalHostControllerInfoImpl hostControllerInfo , final HostControllerConfigurationPersister configurationPersister , final Map < String , ProxyController > hostProxies , final Map < String , ProxyController > serverProxies , final PrepareStepHandler prepareStepHandler ) { } @ Override public LocalHostControllerInfo getLocalHostInfo ( ) { } @ Override public void registerRemoteHost ( ProxyController hostControllerClient ) { } @ Override public void unregisterRemoteHost ( String id ) { } @ Override public void registerRunningServer ( ProxyController serverControllerClient ) { } @ Override public void unregisterRunningServer ( String serverName ) { } @ Override public ModelNode getProfileOperations ( String profileName ) { } @ Override public FileRepository getFileRepository ( ) { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } @ Override public void start ( StartContext context ) throws StartException { } @ Override protected void boot ( final BootContext context ) throws ConfigurationPersistenceException { final ServiceTarget serviceTarget = context . getServiceTarget ( ) ; try { super . boot ( configurationPersister . load ( ) ) ; NetworkInterfaceBinding nativeManagementInterfaceBinding = getNativeManagementNetworkInterfaceBinding ( ) ; Future < ServerInventory > inventoryFuture = NewServerInventoryService . install ( serviceTarget , this , environment , nativeManagementInterfaceBinding , hostControllerInfo . getNativeManagementPort ( ) ) ; RemotingServices . installRemotingEndpoint ( serviceTarget ) ; if ( ! ( hostControllerInfo . isMasterDomainController ( ) ) ) { serverInventory = getFuture ( inventoryFuture ) ; Future < MasterDomainControllerClient > clientFuture = RemoteDomainConnectionService . install ( serviceTarget , getValue ( ) , hostControllerInfo . getLocalHostName ( ) , hostControllerInfo . getRemoteDomainControllerHost ( ) , hostControllerInfo . getRemoteDomainControllertPort ( ) , hostControllerInfo . getRemoteDomainControllerSecurityRealm ( ) , remoteFileRepository ) ; masterDomainControllerClient = getFuture ( clientFuture ) ; masterDomainControllerClient . register ( ) ; } else { ConfigurationPersister domainPersister = configurationPersister . getDomainPersister ( ) ; super . boot ( domainPersister . load ( ) ) ; RemotingServices . installChannelServices ( serviceTarget , new MasterDomainControllerOperationHandlerService ( this , this ) , DomainModelControllerService . SERVICE_NAME , DOMAIN_CHANNEL , null , null ) ; serverInventory = getFuture ( inventoryFuture ) ; } ServiceName realmSvcName = null ; String nativeSecurityRealm = hostControllerInfo . getNativeManagementSecurityRealm ( ) ; if ( nativeSecurityRealm != null ) { realmSvcName = BASE_SERVICE_NAME . append ( nativeSecurityRealm ) ; } <START_BUG> RemotingServices . installDomainConnectorServices ( serviceTarget , nativeManagementInterfaceBinding , hostControllerInfo . getNativeManagementPort ( ) , realmSvcName ) ; <END_BUG> ServerToHostOperationHandlerFactoryService . install ( serviceTarget , NewServerInventoryService . SERVICE_NAME ) ; RemotingServices . installChannelOpenListenerService ( serviceTarget , SERVER_CHANNEL , ServerToHostOperationHandlerFactoryService . SERVICE_NAME , null , null ) ; RemotingServices . installChannelServices ( serviceTarget , new ModelControllerClientOperationHandlerFactoryService ( ) , DomainModelControllerService . SERVICE_NAME , MANAGEMENT_CHANNEL , null , null ) ; if ( ( hostControllerInfo . getHttpManagementInterface ( ) ) != null ) { installHttpManagementServices ( serviceTarget ) ; } startServers ( ) ; } finally { finishBoot ( ) ; } } private void installHttpManagementServices ( final ServiceTarget serviceTarget ) { } private NetworkInterfaceBinding getNativeManagementNetworkInterfaceBinding ( ) { } private < T > T getFuture ( Future < T > future ) { } private void startServers ( ) { } @ Override public void stop ( StopContext context ) { } @ Override public void stopLocalHost ( ) { } @ Override public synchronized void registerChannel ( final String hostName , final ManagementChannel channel , final ProxyCreatedCallback callback ) { } @ Override public synchronized ProxyController popChannelAndCreateProxy ( final String hostName ) { } private class DelegatingServerInventory implements ServerInventory { public void serverRegistered ( String serverProcessName , ManagementChannel channel , ProxyCreatedCallback callback ) { } public void serverStartFailed ( String serverProcessName ) { } public void serverStopped ( String serverProcessName ) { } public String getServerProcessName ( String serverName ) { } public void processInventory ( Map < String , ProcessInfo > processInfos ) { } public Map < String , ProcessInfo > determineRunningProcesses ( ) { } public ServerStatus determineServerStatus ( String serverName ) { } public int hashCode ( ) { } public ServerStatus startServer ( String serverName , ModelNode domainModel ) { } public void reconnectServer ( String serverName , ModelNode domainModel , boolean running ) { } public ServerStatus restartServer ( String serverName , int gracefulTimeout , ModelNode domainModel ) { } public ServerStatus stopServer ( String serverName , int gracefulTimeout ) { } public CallbackHandler getServerCallbackHandler ( ) { } public boolean equals ( Object obj ) { } public String toString ( ) { } @ Override public void stopServers ( int gracefulTimeout ) { } } }

Fix:
RemotingServices . installDomainConnectorServices ( serviceTarget , nativeManagementInterfaceBinding , hostControllerInfo . getNativeManagementPort ( ) , realmSvcName , null , null ) ;