Buggy code:
private static final AttributeDefinition DOMAIN_TEMP_DIR = HostEnvironmentResourceDescription . createAttributeDefinition ( "domain-temp-dir" ) ; private static final AttributeDefinition DEFAULT_JVM = HostEnvironmentResourceDescription . createAttributeDefinition ( "default-jvm" ) ; private static final AttributeDefinition IS_RESTART = HostEnvironmentResourceDescription . createAttributeDefinition ( "is-restart" , BOOLEAN ) ; private static final AttributeDefinition BACKUP_DOMAIN_FILES = HostEnvironmentResourceDescription . createAttributeDefinition ( "backup-domain-files" , BOOLEAN ) ; private static final AttributeDefinition USE_CACHED_DC = HostEnvironmentResourceDescription . createAttributeDefinition ( "use-cached-dc" , BOOLEAN ) ; private static final AttributeDefinition INITIAL_RUNNING_MODE = HostEnvironmentResourceDescription . createAttributeDefinition ( "initial-running-mode" ) ; private static final AttributeDefinition QUALIFIED_HOST_NAME = HostEnvironmentResourceDescription . createAttributeDefinition ( "qualified-host-name" ) ; private static final AttributeDefinition HOST_NAME = HostEnvironmentResourceDescription . createAttributeDefinition ( "host-name" ) ; public static final AttributeDefinition [ ] HOST_ENV_ATTRIBUTES = new AttributeDefinition [ ] { HostEnvironmentResourceDescription . PROCESS_CONTROLLER_ADDRESS , HostEnvironmentResourceDescription . PROCESS_CONTROLLER_PORT , HostEnvironmentResourceDescription . HOST_CONTROLLER_ADDRESS , HostEnvironmentResourceDescription . HOST_CONTROLLER_PORT , HostEnvironmentResourceDescription . HOME_DIR , HostEnvironmentResourceDescription . MODULES_DIR , HostEnvironmentResourceDescription . DOMAIN_BASE_DIR , HostEnvironmentResourceDescription . DOMAIN_CONFIG_DIR , HostEnvironmentResourceDescription . HOST_CONFIG_FILE , HostEnvironmentResourceDescription . DOMAIN_CONFIG_FILE , HostEnvironmentResourceDescription . DOMAIN_CONTENT_DIR , HostEnvironmentResourceDescription . DOMAIN_DATA_DIR , HostEnvironmentResourceDescription . DOMAIN_LOG_DIR , HostEnvironmentResourceDescription . DOMAIN_SERVERS_DIR , HostEnvironmentResourceDescription . DOMAIN_TEMP_DIR , HostEnvironmentResourceDescription . DEFAULT_JVM , HostEnvironmentResourceDescription . IS_RESTART , HostEnvironmentResourceDescription . BACKUP_DOMAIN_FILES , HostEnvironmentResourceDescription . USE_CACHED_DC , HostEnvironmentResourceDescription . INITIAL_RUNNING_MODE , HostEnvironmentResourceDescription . QUALIFIED_HOST_NAME , HostEnvironmentResourceDescription . HOST_NAME } ; private final HostEnvironmentResourceDescription . HostEnvironmentReadHandler osh ; private HostEnvironmentResourceDescription ( final HostControllerEnvironment environment ) { } public static HostEnvironmentResourceDescription of ( final HostControllerEnvironment environment ) { } private static AttributeDefinition createAttributeDefinition ( String name ) { } private static AttributeDefinition createAttributeDefinition ( String name , ModelType type ) { } @ Override public void registerAttributes ( final ManagementResourceRegistration resourceRegistration ) { } private static class HostEnvironmentReadHandler implements OperationStepHandler { private final HostControllerEnvironment environment ; public HostEnvironmentReadHandler ( final HostControllerEnvironment environment ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final ModelNode result = context . getResult ( ) ; final String name = operation . require ( NAME ) . asString ( ) ; if ( equals ( name , HostEnvironmentResourceDescription . PROCESS_CONTROLLER_ADDRESS ) ) { set ( result , environment . getProcessControllerAddress ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . PROCESS_CONTROLLER_PORT ) ) { set ( result , environment . getProcessControllerPort ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . HOST_CONTROLLER_ADDRESS ) ) { set ( result , environment . getHostControllerAddress ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . HOST_CONTROLLER_PORT ) ) { set ( result , environment . getHostControllerPort ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . HOME_DIR ) ) { set ( result , environment . getHomeDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . MODULES_DIR ) ) { set ( result , environment . getModulesDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_BASE_DIR ) ) { set ( result , environment . getDomainBaseDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_CONFIG_DIR ) ) { set ( result , environment . getDomainConfigurationDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . HOST_CONFIG_FILE ) ) { set ( result , environment . getHostConfigurationFile ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_CONFIG_FILE ) ) { set ( result , environment . getDomainConfigurationFile ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_CONTENT_DIR ) ) { set ( result , environment . getDomainContentDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_DATA_DIR ) ) { set ( result , environment . getDomainDataDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_LOG_DIR ) ) { set ( result , environment . getDomainLogDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_SERVERS_DIR ) ) { set ( result , environment . getDomainServersDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DOMAIN_TEMP_DIR ) ) { set ( result , environment . getDomainTempDir ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . DEFAULT_JVM ) ) { set ( result , environment . getDefaultJVM ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . IS_RESTART ) ) { set ( result , environment . isRestart ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . BACKUP_DOMAIN_FILES ) ) { set ( result , environment . isBackupDomainFiles ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . USE_CACHED_DC ) ) { set ( result , environment . isUseCachedDc ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . INITIAL_RUNNING_MODE ) ) { set ( result , environment . getInitialRunningMode ( ) . name ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . QUALIFIED_HOST_NAME ) ) { set ( result , environment . getQualifiedHostName ( ) ) ; } else if ( equals ( name , HostEnvironmentResourceDescription . HOST_NAME ) ) { set ( result , environment . getHostName ( ) ) ; } <START_BUG> context . completeStep ( ) ; <END_BUG> } private void set ( final ModelNode node , final int value ) { } private void set ( final ModelNode node , final boolean value ) { } private void set ( final ModelNode node , final String value ) { } private void set ( final ModelNode node , final InetAddress value ) { } private void set ( final ModelNode node , final File value ) { } private void set ( final ModelNode node , final ConfigurationFile value ) { } private boolean equals ( final String name , final AttributeDefinition attribute ) { } } }

Fix:
context . stepCompleted ( ) ;