Buggy code:
public class HostModelUtil { public static interface HostModelRegistrar { void registerHostModel ( final String hostName , final ManagementResourceRegistration root ) { } } public static void createRootRegistry ( final ManagementResourceRegistration root , final HostControllerEnvironment environment , final IgnoredDomainResourceRegistry ignoredDomainResourceRegistry , final HostModelUtil . HostModelRegistrar hostModelRegistrar ) { } public static void createHostRegistry ( final String hostName , final ManagementResourceRegistration root , final HostControllerConfigurationPersister configurationPersister , final HostControllerEnvironment environment , final HostRunningModeControl runningModeControl , final HostFileRepository localFileRepository , final LocalHostControllerInfoImpl hostControllerInfo , final ServerInventory serverInventory , final HostFileRepository remoteFileRepository , final ContentRepository contentRepository , final DomainController domainController , final ExtensionRegistry extensionRegistry , final AbstractVaultReader vaultReader , final IgnoredDomainResourceRegistry ignoredRegistry , final ControlledProcessState processState , final PathManagerService pathManager ) { ManagementResourceRegistration hostRegistration = root . registerSubModel ( PathElement . pathElement ( ModelDescriptionConstants . HOST , hostName ) , HOST_ROOT_PROVIDER ) ; EnumSet < OperationEntry . Flag > flags = EnumSet . of ( READ_ONLY ) ; XmlMarshallingHandler xmh = new org . jboss . as . host . controller . operations . HostXmlMarshallingHandler ( configurationPersister . getHostPersister ( ) , hostControllerInfo ) ; hostRegistration . registerOperationHandler ( OPERATION_NAME , xmh , xmh , false , PUBLIC , flags ) ; hostRegistration . registerReadWriteAttribute ( DIRECTORY_GROUPING , null , new org . jboss . as . controller . ReloadRequiredWriteAttributeHandler ( HostRootDescription . DIRECTORY_GROUPING ) ) ; hostRegistration . registerOperationHandler ( NamespaceAddHandler . OPERATION_NAME , INSTANCE , INSTANCE , false ) ; hostRegistration . registerOperationHandler ( NamespaceRemoveHandler . OPERATION_NAME , NamespaceRemoveHandler . INSTANCE , NamespaceRemoveHandler . INSTANCE , false ) ; hostRegistration . registerOperationHandler ( SchemaLocationAddHandler . OPERATION_NAME , SchemaLocationAddHandler . INSTANCE , SchemaLocationAddHandler . INSTANCE , false ) ; hostRegistration . registerOperationHandler ( SchemaLocationRemoveHandler . OPERATION_NAME , SchemaLocationRemoveHandler . INSTANCE , SchemaLocationRemoveHandler . INSTANCE , false ) ; hostRegistration . registerReadWriteAttribute ( ModelDescriptionConstants . NAME , environment . getProcessNameReadHandler ( ) , environment . getProcessNameWriteHandler ( ) , CONFIGURATION ) ; hostRegistration . registerReadOnlyAttribute ( ModelDescriptionConstants . MASTER , IsMasterHandler . INSTANCE , RUNTIME ) ; hostRegistration . registerReadOnlyAttribute ( ModelDescriptionConstants . HOST_STATE , new org . jboss . as . controller . operations . common . ProcessStateAttributeHandler ( processState ) , RUNTIME ) ; StartServersHandler ssh = new StartServersHandler ( environment , serverInventory , runningModeControl ) ; hostRegistration . registerOperationHandler ( StartServersHandler . OPERATION_NAME , ssh , ssh , false , PRIVATE ) ; HostShutdownHandler hsh = new HostShutdownHandler ( domainController ) ; hostRegistration . registerOperationHandler ( HostShutdownHandler . OPERATION_NAME , hsh , hsh , EnumSet . of ( HOST_CONTROLLER_ONLY ) ) ; hostRegistration . registerOperationHandler ( ResolveExpressionHandler . OPERATION_NAME , ResolveExpressionHandler . INSTANCE , ResolveExpressionHandler . INSTANCE , EnumSet . of ( READ_ONLY ) ) ; hostRegistration . registerOperationHandler ( ResolveExpressionOnHostHandler . OPERATION_NAME , ResolveExpressionOnHostHandler . INSTANCE , ResolveExpressionOnHostHandler . INSTANCE , EnumSet . of ( READ_ONLY , DOMAIN_PUSH_TO_SERVERS ) ) ; <START_BUG> HostProcessReloadHandler reloadHandler = new HostProcessReloadHandler ( HostControllerService . HC_SERVICE_NAME , runningModeControl , HostRootDescription . getResourceDescriptionResolver ( "host" ) ) ; <END_BUG> hostRegistration . registerOperationHandler ( ProcessReloadHandler . OPERATION_NAME , reloadHandler , reloadHandler , EnumSet . of ( HOST_CONTROLLER_ONLY ) ) ; RunningModeReadHandler . createAndRegister ( runningModeControl , hostRegistration ) ; DomainServerLifecycleHandlers . initializeServerInventory ( serverInventory ) ; hostRegistration . registerOperationHandler ( SpecifiedInterfaceResolveHandler . OPERATION_NAME , SpecifiedInterfaceResolveHandler . INSTANCE , SpecifiedInterfaceResolveHandler . INSTANCE ) ; ValidateOperationHandler validateOperationHandler = ( hostControllerInfo . isMasterDomainController ( ) ) ? ValidateOperationHandler . INSTANCE : ValidateOperationHandler . SLAVE_HC_INSTANCE ; hostRegistration . registerOperationHandler ( ValidateOperationHandler . OPERATION_NAME , validateOperationHandler , validateOperationHandler , false , EntryType . PRIVATE , EnumSet . of ( Flag . READ_ONLY ) ) ; ManagementResourceRegistration sysProps = hostRegistration . registerSubModel ( PathElement . pathElement ( ModelDescriptionConstants . SYSTEM_PROPERTY ) , SYSTEM_PROPERTIES_PROVIDER ) ; sysProps . registerOperationHandler ( SystemPropertyAddHandler . OPERATION_NAME , INSTANCE_WITH_BOOTTIME , INSTANCE_WITH_BOOTTIME , false ) ; sysProps . registerOperationHandler ( SystemPropertyRemoveHandler . OPERATION_NAME , SystemPropertyRemoveHandler . INSTANCE , SystemPropertyRemoveHandler . INSTANCE , false ) ; sysProps . registerReadWriteAttribute ( ModelDescriptionConstants . VALUE , null , SystemPropertyValueWriteAttributeHandler . INSTANCE , CONFIGURATION ) ; sysProps . registerReadWriteAttribute ( ModelDescriptionConstants . BOOT_TIME , null , new WriteAttributeHandlers . ModelTypeValidatingHandler ( ModelType . BOOLEAN ) , CONFIGURATION ) ; ManagementResourceRegistration vault = hostRegistration . registerSubModel ( PathElement . pathElement ( ModelDescriptionConstants . CORE_SERVICE , ModelDescriptionConstants . VAULT ) , VAULT_PROVIDER ) ; VaultAddHandler vah = new VaultAddHandler ( vaultReader ) ; vault . registerOperationHandler ( VaultAddHandler . OPERATION_NAME , vah , vah , false ) ; VaultRemoveHandler vrh = new VaultRemoveHandler ( vaultReader ) ; vault . registerOperationHandler ( VaultRemoveHandler . OPERATION_NAME , vrh , vrh , false ) ; VaultWriteAttributeHandler . INSTANCE . registerAttributes ( vault ) ; ManagementResourceRegistration management = hostRegistration . registerSubModel ( PathElement . pathElement ( ModelDescriptionConstants . CORE_SERVICE , ModelDescriptionConstants . MANAGEMENT ) , MANAGEMENT_WITH_INTERFACES_PROVIDER ) ; management . registerSubModel ( SecurityRealmResourceDefinition . INSTANCE ) ; management . registerSubModel ( LdapConnectionResourceDefinition . INSTANCE ) ; management . registerSubModel ( new org . jboss . as . host . controller . resources . NativeManagementResourceDefinition ( hostControllerInfo ) ) ; management . registerSubModel ( new org . jboss . as . host . controller . resources . HttpManagementResourceDefinition ( hostControllerInfo , environment ) ) ; PlatformMBeanResourceRegistrar . registerPlatformMBeanResources ( hostRegistration ) ; hostRegistration . registerSubModel ( HostControllerResourceDescription . of ( environment ) ) ; LocalDomainControllerAddHandler localDcAddHandler = LocalDomainControllerAddHandler . getInstance ( root , hostControllerInfo , configurationPersister , localFileRepository , contentRepository , domainController , extensionRegistry , pathManager ) ; hostRegistration . registerOperationHandler ( LocalDomainControllerAddHandler . OPERATION_NAME , localDcAddHandler , localDcAddHandler , false ) ; hostRegistration . registerOperationHandler ( LocalDomainControllerRemoveHandler . OPERATION_NAME , LocalDomainControllerRemoveHandler . INSTANCE , LocalDomainControllerRemoveHandler . INSTANCE , false ) ; RemoteDomainControllerAddHandler remoteDcAddHandler = new RemoteDomainControllerAddHandler ( root , hostControllerInfo , configurationPersister , contentRepository , remoteFileRepository , extensionRegistry , ignoredRegistry , pathManager ) ; hostRegistration . registerOperationHandler ( RemoteDomainControllerAddHandler . OPERATION_NAME , remoteDcAddHandler , remoteDcAddHandler , false ) ; hostRegistration . registerOperationHandler ( RemoteDomainControllerRemoveHandler . OPERATION_NAME , RemoteDomainControllerRemoveHandler . INSTANCE , RemoteDomainControllerRemoveHandler . INSTANCE , false ) ; ignoredRegistry . registerResources ( hostRegistration ) ;

Fix:
HostProcessReloadHandler reloadHandler = new HostProcessReloadHandler ( HostControllerService . HC_SERVICE_NAME , runningModeControl , processState , HostRootDescription . getResourceDescriptionResolver ( "host" ) ) ;