Buggy code:
public class DomainModelControllerService extends AbstractControllerService implements DomainController , UnregisteredHostChannelRegistry { public static final ServiceName SERVICE_NAME = HC_SERVICE_NAME . append ( "model" , "controller" ) ; private HostControllerConfigurationPersister hostControllerConfigurationPersister ; private final HostControllerEnvironment environment ; private final HostRunningModeControl runningModeControl ; private final LocalHostControllerInfoImpl hostControllerInfo ; private final HostFileRepository localFileRepository ; private final RemoteFileRepository remoteFileRepository ; 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 final BootstrapListener bootstrapListener ; private ManagementResourceRegistration modelNodeRegistration ; private final Map < String , Channel > unregisteredHostChannels = new HashMap < String , Channel > ( ) ; private final Map < String , ProxyCreatedCallback > proxyCreatedCallbacks = new HashMap < String , ProxyCreatedCallback > ( ) ; final ThreadFactory threadFactory = new JBossThreadFactory ( new ThreadGroup ( "proxy-threads" ) , Boolean . FALSE , null , "%G<seq2seq4repair_space>-<seq2seq4repair_space>%t" , null , null , AccessController . getContext ( ) ) ; private final ExecutorService proxyExecutor = Executors . newCachedThreadPool ( threadFactory ) ; private final AbstractVaultReader vaultReader ; private final ContentRepository contentRepository ; private final ExtensionRegistry extensionRegistry ; private final ControlledProcessState processState ; private volatile ServerInventory serverInventory ; public static ServiceController < ModelController > addService ( final ServiceTarget serviceTarget , final HostControllerEnvironment environment , final HostRunningModeControl runningModeControl , final ControlledProcessState processState , final BootstrapListener bootstrapListener ) { final Map < String , ProxyController > hostProxies = new ConcurrentHashMap < String , ProxyController > ( ) ; final Map < String , ProxyController > serverProxies = new ConcurrentHashMap < String , ProxyController > ( ) ; <START_BUG> final LocalHostControllerInfoImpl hostControllerInfo = new LocalHostControllerInfoImpl ( processState ) ; <END_BUG> final AbstractVaultReader vaultReader = DomainModelControllerService . service ( AbstractVaultReader . class ) ; HostControllerLogger . ROOT_LOGGER . debugf ( "Using<seq2seq4repair_space>VaultReader<seq2seq4repair_space>%s" , vaultReader ) ; final ContentRepository contentRepository = Factory . create ( environment . getDomainDeploymentDir ( ) ) ; final PrepareStepHandler prepareStepHandler = new PrepareStepHandler ( hostControllerInfo , contentRepository , hostProxies , serverProxies ) ; DomainModelControllerService service = new DomainModelControllerService ( environment , runningModeControl , processState , hostControllerInfo , contentRepository , hostProxies , serverProxies , prepareStepHandler , vaultReader , bootstrapListener ) ; return serviceTarget . addService ( DomainModelControllerService . SERVICE_NAME , service ) . addDependency ( HC_EXECUTOR_SERVICE_NAME , ExecutorService . class , service . getExecutorServiceInjector ( ) ) . addDependency ( ProcessControllerConnectionService . SERVICE_NAME , ProcessControllerConnectionService . class , service . injectedProcessControllerConnection ) . setInitialMode ( ACTIVE ) . install ( ) ; } private DomainModelControllerService ( final HostControllerEnvironment environment , final HostRunningModeControl runningModeControl , final ControlledProcessState processState , final LocalHostControllerInfoImpl hostControllerInfo , final ContentRepository contentRepository , final Map < String , ProxyController > hostProxies , final Map < String , ProxyController > serverProxies , final PrepareStepHandler prepareStepHandler , final AbstractVaultReader vaultReader , final BootstrapListener bootstrapListener ) { } @ Override public LocalHostControllerInfo getLocalHostInfo ( ) { } @ Override public void registerRemoteHost ( ProxyController hostControllerClient ) throws SlaveRegistrationException { } @ 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 HostFileRepository getLocalFileRepository ( ) { } @ Override public HostFileRepository getRemoteFileRepository ( ) { } @ Override public void start ( StartContext context ) throws StartException { } @ Override protected void initModel ( Resource rootResource , ManagementResourceRegistration rootRegistration ) { } @ Override protected void boot ( final BootContext context ) throws ConfigurationPersistenceException { } private < T > T getFuture ( Future < T > future ) { } private void startServers ( ) { } @ Override public void stop ( StopContext context ) { } @ Override public void stopLocalHost ( ) { } @ Override public void stopLocalHost ( int exitCode ) { } @ Override public synchronized void registerChannel ( final String hostName , final Channel channel , final ProxyCreatedCallback callback ) { } @ Override public synchronized ProxyController popChannelAndCreateProxy ( final String hostName ) { } private class DelegatingServerInventory implements ServerInventory { public void serverCommunicationRegistered ( String serverProcessName , Channel channel , ProxyCreatedCallback callback ) { } public void serverProcessAdded ( String processName ) { } public void serverStartFailed ( String serverProcessName ) { } public void serverProcessStopped ( String serverProcessName ) { } public String getServerProcessName ( String serverName ) { } public String getProcessServerName ( String processName ) { } public void processInventory ( Map < String , ProcessInfo > processInfos ) { } public Map < String , ProcessInfo > determineRunningProcesses ( ) { } public Map < String , ProcessInfo > determineRunningProcesses ( boolean serversOnly ) { } 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 ) { } @ Override public void connectionFinished ( ) { } @ Override public void serverProcessStarted ( String processName ) { } @ Override public void serverProcessRemoved ( String processName ) { } @ Override public void operationFailed ( String processName , ProcessMessageHandler . OperationType type ) { } } private static < S > S service ( final Class < S > service ) { } }

Fix:
final LocalHostControllerInfoImpl hostControllerInfo = new LocalHostControllerInfoImpl ( processState , environment ) ;