Buggy code:
public class HostProcessReloadHandler extends ProcessReloadHandler < HostRunningModeControl > { private static final AttributeDefinition RESTART_SERVERS = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( ModelDescriptionConstants . RESTART_SERVERS , ModelType . BOOLEAN , true ) . setDefaultValue ( new ModelNode ( true ) ) . build ( ) ; private static final AttributeDefinition USE_CURRENT_DOMAIN_CONFIG = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( ModelDescriptionConstants . USE_CURRENT_DOMAIN_CONFIG , ModelType . BOOLEAN , true ) . setDefaultValue ( new ModelNode ( true ) ) . build ( ) ; private static final AttributeDefinition USE_CURRENT_HOST_CONFIG = new org . jboss . as . controller . SimpleAttributeDefinitionBuilder ( ModelDescriptionConstants . USE_CURRENT_HOST_CONFIG , ModelType . BOOLEAN , true ) . setDefaultValue ( new ModelNode ( true ) ) . build ( ) ; private static final AttributeDefinition [ ] MASTER_ATTRIBUTES = new AttributeDefinition [ ] { ADMIN_ONLY , HostProcessReloadHandler . RESTART_SERVERS , HostProcessReloadHandler . USE_CURRENT_DOMAIN_CONFIG , HostProcessReloadHandler . USE_CURRENT_HOST_CONFIG } ; private static final AttributeDefinition [ ] SLAVE_ATTRIBUTES = new AttributeDefinition [ ] { ADMIN_ONLY , HostProcessReloadHandler . RESTART_SERVERS , HostProcessReloadHandler . USE_CURRENT_HOST_CONFIG } ; public static OperationDefinition getDefinition ( final LocalHostControllerInfo hostControllerInfo ) { } public HostProcessReloadHandler ( final ServiceName rootService , final HostRunningModeControl runningModeControl , final ControlledProcessState processState ) { } @ Override protected ProcessReloadHandler . ReloadContext < HostRunningModeControl > initializeReloadContext ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final boolean adminOnly = ADMIN_ONLY . resolveModelAttribute ( context , operation ) . asBoolean ( false ) ; final boolean restartServers = HostProcessReloadHandler . RESTART_SERVERS . resolveModelAttribute ( context , operation ) . asBoolean ( true ) ; final boolean useCurrentHostConfig = HostProcessReloadHandler . USE_CURRENT_HOST_CONFIG . resolveModelAttribute ( context , operation ) . asBoolean ( true ) ; final boolean useCurrentDomainConfig = HostProcessReloadHandler . USE_CURRENT_DOMAIN_CONFIG . resolveModelAttribute ( context , operation ) . asBoolean ( true ) ; return new ReloadContext < HostRunningModeControl > ( ) { @ Override public void reloadInitiated ( HostRunningModeControl runningModeControl ) { runningModeControl . setRestartMode ( ( restartServers ? RestartMode . SERVERS : RestartMode . HC_ONLY ) ) ; } @ Override public void doReload ( HostRunningModeControl runningModeControl ) { runningModeControl . setRunningMode ( ( adminOnly ? RunningMode . ADMIN_ONLY : RunningMode . NORMAL ) ) ; <START_BUG> runningModeControl . setReloaded ( true ) ; <END_BUG> runningModeControl . setUseCurrentConfig ( useCurrentHostConfig ) ; runningModeControl . setUseCurrentDomainConfig ( useCurrentDomainConfig ) ; } } ; } private static class DeferredParametersOperationDefinitionBuilder extends SimpleOperationDefinitionBuilder { private final LocalHostControllerInfo hostControllerInfo ; public DeferredParametersOperationDefinitionBuilder ( LocalHostControllerInfo hostControllerInfo , String name , ResourceDescriptionResolver resolver ) { } @ Override public SimpleOperationDefinition internalBuild ( final ResourceDescriptionResolver resolver , final ResourceDescriptionResolver attributeResolver ) { } } }

Fix:
runningModeControl . setReloaded ( ) ;