Buggy code:
class ModelCombiner implements ManagedServerBootConfiguration { private static final ModelNode EMPTY = new ModelNode ( ) ; private final String serverName ; private final ModelNode domainModel ; private final ModelNode hostModel ; private final ModelNode serverModel ; private final ModelNode serverGroup ; private final String profileName ; private final JvmElement jvmElement ; private final HostControllerEnvironment environment ; private final DomainController domainController ; private final boolean managementSubsystemEndpoint ; ModelCombiner ( final String serverName , final ModelNode domainModel , final ModelNode hostModel , final DomainController domainController , final HostControllerEnvironment environment ) { } @ Override public List < ModelNode > getBootUpdates ( ) { } @ Override public HostControllerEnvironment getHostControllerEnvironment ( ) { } @ Override public List < String > getServerLaunchCommand ( ) { } @ Override public boolean isManagementSubsystemEndpoint ( ) { } private String getJavaCommand ( ) { } @ Override public Map < String , String > getServerLaunchEnvironment ( ) { } private void addNamespaces ( List < ModelNode > updates ) { } private void addNamespaces ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addServerName ( List < ModelNode > updates ) { } private void addSchemaLocations ( List < ModelNode > updates ) { } private void addSchemaLocations ( Map < String , ModelNode > map , ModelNode namespaces ) { } private void addExtensions ( List < ModelNode > updates ) { } private void addExtensions ( Set < String > extensionNames , ModelNode extensions ) { } private void addPaths ( List < ModelNode > updates ) { } private void addPaths ( Map < String , ModelNode > map , ModelNode path ) { } private void addSystemProperties ( List < ModelNode > updates ) { } private Map < String , String > getAllSystemProperties ( boolean boottimeOnly ) { } private void addSystemProperties ( final ModelNode source , final Map < String , String > props , boolean boottimeOnly ) { } private void addInterfaces ( List < ModelNode > updates ) { } private void addInterfaces ( Map < String , ModelNode > map , ModelNode iface ) { } private void addSocketBindings ( List < ModelNode > updates , int portOffSet , String bindingRef ) { } private void mergeBindingGroups ( List < ModelNode > updates , Map < String , ModelNode > groups , final String groupName , ModelNode group , Set < String > processed ) { } private void addSocketBindings ( List < ModelNode > updates , ModelNode group , final String groupName , ModelNode defaultInterface ) { } private void addSubsystems ( List < ModelNode > updates ) { } private void addDeployments ( List < ModelNode > updates ) { if ( serverGroup . hasDefined ( DEPLOYMENT ) ) { FileRepository remoteRepository = null ; <START_BUG> if ( domainController . getLocalHostInfo ( ) . isMasterDomainController ( ) ) { <END_BUG> remoteRepository = domainController . getRemoteFileRepository ( ) ; } for ( Property deployment : serverGroup . get ( DEPLOYMENT ) . asPropertyList ( ) ) { String name = deployment . getName ( ) ; ModelNode details = deployment . getValue ( ) ; ModelNode domainDeployment = domainModel . require ( DEPLOYMENT ) . require ( name ) ; ModelNode deploymentContent = domainDeployment . require ( CONTENT ) . clone ( ) ; if ( remoteRepository != null ) { for ( ModelNode content : deploymentContent . asList ( ) ) { if ( content . hasDefined ( HASH ) ) { byte [ ] hash = content . require ( HASH ) . asBytes ( ) ; File [ ] files = domainController . getLocalFileRepository ( ) . getDeploymentFiles ( hash ) ; if ( ( files == null ) || ( ( files . length ) == 0 ) ) { remoteRepository . getDeploymentFiles ( hash ) ; } } } } PathAddress addr = PathAddress . pathAddress ( PathElement . pathElement ( DEPLOYMENT , name ) ) ; ModelNode addOp = Util . getEmptyOperation ( ADD , addr . toModelNode ( ) ) ; addOp . get ( RUNTIME_NAME ) . set ( details . get ( RUNTIME_NAME ) ) ; addOp . get ( CONTENT ) . set ( deploymentContent ) ; addOp . get ( ENABLED ) . set ( ( ( ! ( details . hasDefined ( ENABLED ) ) ) || ( details . get ( ENABLED ) . asBoolean ( ) ) ) ) ; updates . add ( addOp ) ; } } } private ModelNode pathAddress ( PathElement ... elements ) { } static void addStandardProperties ( final String serverName , final HostControllerEnvironment environment , Map < String , String > sysProps ) { } }

Fix:
if ( ! ( domainController . getLocalHostInfo ( ) . isMasterDomainController ( ) ) ) {