Buggy code:
public class RemoteDomainConnectionService implements MasterDomainControllerClient , ClosedCallback , Service < MasterDomainControllerClient > { private static final Logger log = Logger . getLogger ( "org.jboss.as.domain.controller" ) ; private static final int CONNECTION_TIMEOUT = 5000 ; private final InetAddress host ; private final int port ; private final String name ; private final RemoteDomainConnectionService . RemoteFileRepository remoteFileRepository ; private volatile Connection connection ; private volatile ModelController masterProxy ; private volatile TransactionalModelControllerOperationHandler txOperationHandler ; private final InjectedValue < ManagementCommunicationService > managementCommunicationService = new InjectedValue < ManagementCommunicationService > ( ) ; private final AtomicBoolean shutdown = new AtomicBoolean ( ) ; private volatile RemoteDomainConnectionService . ReconnectInfo reconnectInfo ; public RemoteDomainConnectionService ( final String name , final InetAddress host , final int port , final FileRepository localRepository ) { } @ Override public void register ( final String hostName , final InetAddress ourAddress , final int ourPort , final DomainControllerSlave slave ) { } private synchronized void connect ( final String hostName , final InetAddress ourAddress , final int ourPort , final DomainControllerSlave slave ) { } private InetAddress getCallbackAddress ( InetAddress ourAddress , InetAddress master ) { } @ Override public synchronized void unregister ( ) { try { new RemoteDomainConnectionService . UnregisterModelControllerRequest ( ) . executeForResult ( new org . jboss . as . protocol . mgmt . ManagementRequestConnectionStrategy . ExistingConnectionStrategy ( connection ) ) ; } catch ( Exception e ) { <START_BUG> throw new RuntimeException ( e ) ; <END_BUG> } finally { managementCommunicationService . getValue ( ) . removeHandler ( txOperationHandler ) ; } } @ Override public synchronized FileRepository getRemoteFileRepository ( ) { } @ Override public OperationResult execute ( Operation operation , ResultHandler handler ) { } @ Override public ModelNode execute ( Operation operation ) throws CancellationException { } @ Override public synchronized void start ( StartContext context ) throws StartException { } @ Override public synchronized void stop ( StopContext context ) { } @ Override public synchronized MasterDomainControllerClient getValue ( ) throws IllegalArgumentException , IllegalStateException { } public Injector < ManagementCommunicationService > getManagementCommunicationServiceInjector ( ) { } private abstract class RegistryRequest < T > extends ManagementRequest < T > { @ Override protected byte getHandlerId ( ) { } } private class RegisterModelControllerRequest extends RemoteDomainConnectionService . RegistryRequest < ModelNode > { private final InetAddress localManagementAddress ; private final int localManagementPort ; RegisterModelControllerRequest ( final InetAddress localManagementAddress , final int localManagementPort ) { } @ Override protected byte getRequestCode ( ) { } @ Override protected byte getResponseCode ( ) { } @ Override protected void sendRequest ( final int protocolVersion , final OutputStream outputStream ) throws IOException { } @ Override protected ModelNode receiveResponse ( InputStream input ) throws IOException { } } private class UnregisterModelControllerRequest extends RemoteDomainConnectionService . RegistryRequest < Void > { @ Override protected byte getRequestCode ( ) { } @ Override protected byte getResponseCode ( ) { } @ Override protected void sendRequest ( final int protocolVersion , final OutputStream output ) throws IOException { } } private class GetFileRequest extends RemoteDomainConnectionService . RegistryRequest < File > { private final byte rootId ; private final String filePath ; private final FileRepository localFileRepository ; private GetFileRequest ( final byte rootId , final String filePath , final FileRepository localFileRepository ) { } @ Override public final byte getRequestCode ( ) { } @ Override protected final byte getResponseCode ( ) { } @ Override protected final void sendRequest ( final int protocolVersion , final OutputStream outputStream ) throws IOException { } @ Override protected final File receiveResponse ( final InputStream inputStream ) throws IOException { } } private class RemoteFileRepository implements FileRepository { private final FileRepository localFileRepository ; private RemoteFileRepository ( final FileRepository localFileRepository ) { } @ Override public final File getFile ( String relativePath ) { } @ Override public final File getConfigurationFile ( String relativePath ) { } @ Override public final File [ ] getDeploymentFiles ( byte [ ] deploymentHash ) { } @ Override public File getDeploymentRoot ( byte [ ] deploymentHash ) { } private File getFile ( final String relativePath , final byte repoId ) { } } private class SlaveDomainControllerOperationHandler extends TransactionalModelControllerOperationHandler { SlaveDomainControllerOperationHandler ( final DomainControllerSlave slave ) { } @ Override public ManagementResponse operationFor ( byte commandByte ) { } } private class IsActiveOperation extends ManagementResponse { @ Override protected final byte getResponseCode ( ) { } } private final MessageHandler initialMessageHandler = new ManagementHeaderMessageHandler ( ) { @ Override public void handle ( Connection connection , InputStream dataStream ) throws IOException { } @ Override protected MessageHandler getHandlerForId ( byte handlerId ) { } } ; @ Override public void connectionClosed ( ) { } private static class ReconnectInfo { final String hostName ; final InetAddress ourAddress ; final int ourPort ; final DomainControllerSlave slave ; public ReconnectInfo ( String hostName , InetAddress ourAddress , int ourPort , DomainControllerSlave slave ) { } public String getHostName ( ) { } public InetAddress getOurAddress ( ) { } public int getOurPort ( ) { } public DomainControllerSlave getSlave ( ) { } } }

Fix:
RemoteDomainConnectionService . log . errorf ( e , "Error<seq2seq4repair_space>unregistering<seq2seq4repair_space>from<seq2seq4repair_space>master" ) ;