Buggy code:
public static final SimpleAttributeDefinition PRODUCT_VERSION = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . PRODUCT_VERSION , ModelType . STRING , true ) . setValidator ( DomainRootDefinition . NOT_NULL_STRING_LENGTH_ONE_VALIDATOR ) . build ( ) ; public static final SimpleAttributeDefinition MANAGEMENT_MAJOR_VERSION = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . MANAGEMENT_MAJOR_VERSION , ModelType . INT , false ) . setValidator ( new org . jboss . as . controller . operations . validation . IntRangeValidator ( 1 ) ) . build ( ) ; public static final SimpleAttributeDefinition MANAGEMENT_MINOR_VERSION = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . MANAGEMENT_MINOR_VERSION , ModelType . INT , false ) . setValidator ( new org . jboss . as . controller . operations . validation . IntRangeValidator ( 0 ) ) . build ( ) ; public static final SimpleAttributeDefinition MANAGEMENT_MICRO_VERSION = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . MANAGEMENT_MICRO_VERSION , ModelType . INT , false ) . setValidator ( new org . jboss . as . controller . operations . validation . IntRangeValidator ( 0 ) ) . build ( ) ; public static final SimpleAttributeDefinition PROCESS_TYPE = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ServerDescriptionConstants . PROCESS_TYPE , ModelType . STRING ) . setStorageRuntime ( ) . setValidator ( DomainRootDefinition . NOT_NULL_STRING_LENGTH_ONE_VALIDATOR ) . build ( ) ; public static final SimpleAttributeDefinition LAUNCH_TYPE = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ServerDescriptionConstants . LAUNCH_TYPE , ModelType . STRING ) . setValidator ( new org . jboss . as . controller . operations . validation . EnumValidator < org . jboss . as . server . ServerEnvironment . LaunchType > ( org . jboss . as . server . ServerEnvironment . LaunchType . class , false , false ) ) . setStorageRuntime ( ) . build ( ) ; public static final SimpleAttributeDefinition LOCAL_HOST_NAME = org . jboss . as . controller . SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . LOCAL_HOST_NAME , ModelType . STRING , true ) . setValidator ( DomainRootDefinition . NOT_NULL_STRING_LENGTH_ONE_VALIDATOR ) . setStorageRuntime ( ) . build ( ) ; private final DomainController domainController ; private final LocalHostControllerInfo hostControllerInfo ; private final HostControllerEnvironment environment ; private final ExtensibleConfigurationPersister configurationPersister ; private final ContentRepository contentRepo ; private final HostFileRepository fileRepository ; private final boolean isMaster ; private final ExtensionRegistry extensionRegistry ; private final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry ; private final PathManagerService pathManager ; private final DomainControllerRuntimeIgnoreTransformationRegistry runtimeIgnoreTransformationRegistry ; private final DelegatingConfigurableAuthorizer authorizer ; public DomainRootDefinition ( final DomainController domainController , final HostControllerEnvironment environment , final ExtensibleConfigurationPersister configurationPersister , final ContentRepository contentRepo , final HostFileRepository fileRepository , final boolean isMaster , final LocalHostControllerInfo hostControllerInfo , final ExtensionRegistry extensionRegistry , final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry , final PathManagerService pathManager , final DomainControllerRuntimeIgnoreTransformationRegistry runtimeIgnoreTransformationRegistry , final DelegatingConfigurableAuthorizer authorizer ) { } @ Override public void registerAttributes ( ManagementResourceRegistration resourceRegistration ) { } @ Override public void registerOperations ( ManagementResourceRegistration resourceRegistration ) { super . registerOperations ( resourceRegistration ) ; XmlMarshallingHandler xmh = new XmlMarshallingHandler ( configurationPersister ) ; resourceRegistration . registerOperationHandler ( DEFINITION , xmh ) ; resourceRegistration . registerOperationHandler ( NamespaceAddHandler . DEFINITION , INSTANCE ) ; resourceRegistration . registerOperationHandler ( NamespaceRemoveHandler . DEFINITION , NamespaceRemoveHandler . INSTANCE ) ; resourceRegistration . registerOperationHandler ( SchemaLocationAddHandler . DEFINITION , SchemaLocationAddHandler . INSTANCE ) ; resourceRegistration . registerOperationHandler ( SchemaLocationRemoveHandler . DEFINITION , SchemaLocationRemoveHandler . INSTANCE ) ; if ( isMaster ) { DeploymentUploadURLHandler . registerMaster ( resourceRegistration , contentRepo ) ; DeploymentUploadStreamAttachmentHandler . registerMaster ( resourceRegistration , contentRepo ) ; DeploymentUploadBytesHandler . registerMaster ( resourceRegistration , contentRepo ) ; SnapshotDeleteHandler snapshotDelete = new SnapshotDeleteHandler ( configurationPersister ) ; resourceRegistration . registerOperationHandler ( SnapshotDeleteHandler . DEFINITION , snapshotDelete ) ; SnapshotListHandler snapshotList = new SnapshotListHandler ( configurationPersister ) ; resourceRegistration . registerOperationHandler ( SnapshotListHandler . DEFINITION , snapshotList ) ; SnapshotTakeHandler snapshotTake = new SnapshotTakeHandler ( configurationPersister ) ; resourceRegistration . registerOperationHandler ( SnapshotTakeHandler . DEFINITION , snapshotTake ) ; final SubsystemDescriptionDump dumper = new SubsystemDescriptionDump ( extensionRegistry ) ; resourceRegistration . registerOperationHandler ( SubsystemDescriptionDump . DEFINITION , dumper ) ; } else { DeploymentUploadURLHandler . registerSlave ( resourceRegistration ) ; DeploymentUploadStreamAttachmentHandler . registerSlave ( resourceRegistration ) ; DeploymentUploadBytesHandler . registerSlave ( resourceRegistration ) ; final ApplyExtensionsHandler aexh = new ApplyExtensionsHandler ( extensionRegistry , hostControllerInfo , ignoredDomainResourceRegistry ) ; resourceRegistration . registerOperationHandler ( ApplyExtensionsHandler . DEFINITION , aexh ) ; <START_BUG> ApplyRemoteMasterDomainModelHandler armdmh = new ApplyRemoteMasterDomainModelHandler ( domainController , environment , fileRepository , contentRepo , hostControllerInfo , ignoredDomainResourceRegistry ) ; <END_BUG> resourceRegistration . registerOperationHandler ( ApplyRemoteMasterDomainModelHandler . DEFINITION , armdmh ) ; ApplyMissingDomainModelResourcesHandler amdmrh = new ApplyMissingDomainModelResourcesHandler ( domainController , environment , hostControllerInfo , ignoredDomainResourceRegistry ) ; resourceRegistration . registerOperationHandler ( ApplyMissingDomainModelResourcesHandler . DEFINITION , amdmrh ) ; } resourceRegistration . registerOperationHandler ( FULL_REPLACE_DEPLOYMENT_DEFINITION , ( isMaster ? new org . jboss . as . domain . controller . operations . deployment . DeploymentFullReplaceHandler ( contentRepo ) : new org . jboss . as . domain . controller . operations . deployment . DeploymentFullReplaceHandler ( fileRepository ) ) ) ; resourceRegistration . registerOperationHandler ( ValidateAddressOperationHandler . DEFINITION , ValidateAddressOperationHandler . INSTANCE ) ; resourceRegistration . registerOperationHandler ( ResolveExpressionOnDomainHandler . DEFINITION , ResolveExpressionOnDomainHandler . INSTANCE ) ; DomainServerLifecycleHandlers . registerDomainHandlers ( resourceRegistration ) ; } @ Override public void registerChildren ( ManagementResourceRegistration resourceRegistration ) { } public void initialize ( ManagementResourceRegistration resourceRegistration ) { } public static class RolloutPlanValidator extends AbstractParameterValidator { private static final List < String > ALLOWED_SERVER_GROUP_CHILDREN = Arrays . asList ( ModelDescriptionConstants . ROLLING_TO_SERVERS , ModelDescriptionConstants . MAX_FAILURE_PERCENTAGE , ModelDescriptionConstants . MAX_FAILED_SERVERS ) ; @ Override public void validateParameter ( String parameterName , ModelNode plan ) throws OperationFailedException { } public static void validateInSeriesServerGroup ( ModelNode serverGroup ) throws OperationFailedException { } } }

Fix:
ApplyRemoteMasterDomainModelHandler armdmh = new ApplyRemoteMasterDomainModelHandler ( domainController , environment , fileRepository , contentRepo , hostControllerInfo , ignoredDomainResourceRegistry , authorizer . getWritableAuthorizerConfiguration ( ) ) ;