Buggy code:
static final SimpleAttributeDefinition PRODUCT_NAME = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . PRODUCT_NAME , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition RELEASE_VERSION = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . RELEASE_VERSION , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition RELEASE_CODENAME = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . RELEASE_CODENAME , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition PRODUCT_VERSION = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . PRODUCT_VERSION , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition MANAGEMENT_MAJOR_VERSION = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . MANAGEMENT_MAJOR_VERSION , org . jboss . dmr . ModelType . INT ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition MANAGEMENT_MINOR_VERSION = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . MANAGEMENT_MINOR_VERSION , org . jboss . dmr . ModelType . INT ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition MANAGEMENT_MICRO_VERSION = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . MANAGEMENT_MICRO_VERSION , org . jboss . dmr . ModelType . INT ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; static final SimpleAttributeDefinition PROCESS_STATE = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . PROCESS_STATE , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; public static final SimpleAttributeDefinition HOST_STATE = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . HOST_STATE , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( true ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; public static final SimpleAttributeDefinition DIRECTORY_GROUPING = SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . DIRECTORY_GROUPING , STRING , true ) . addFlag ( RESTART_ALL_SERVICES ) . setDefaultValue ( DirectoryGrouping . defaultValue ( ) . toModelNode ( ) ) . setValidator ( EnumValidator . create ( DirectoryGrouping . class , true , false ) ) . build ( ) ; public static final SimpleAttributeDefinition MASTER = SimpleAttributeDefinitionBuilder . create ( ModelDescriptionConstants . MASTER , BOOLEAN , true ) . setDefaultValue ( new ModelNode ( false ) ) . setStorageRuntime ( ) . build ( ) ; public static final SimpleAttributeDefinition REMOTE_DC_HOST = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . HOST , org . jboss . dmr . ModelType . STRING ) . setAllowNull ( false ) . setMinSize ( 1 ) . setStorageRuntime ( ) . build ( ) ; public static final SimpleAttributeDefinition REMOTE_DC_PORT = new SimpleAttributeDefinitionBuilder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . HOST , org . jboss . dmr . ModelType . INT ) . setStorageRuntime ( ) . build ( ) ; public static final ObjectTypeAttributeDefinition DC_LOCAL = new ObjectTypeAttributeDefinition . Builder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . LOCAL ) . setAllowNull ( true ) . build ( ) ; public static final ObjectTypeAttributeDefinition DC_REMOTE = new ObjectTypeAttributeDefinition . Builder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . REMOTE , HostResourceDefinition . REMOTE_DC_HOST , HostResourceDefinition . REMOTE_DC_PORT ) . setAllowNull ( true ) . build ( ) ; public static final ObjectTypeAttributeDefinition DOMAIN_CONTROLLER = new ObjectTypeAttributeDefinition . Builder ( org . jboss . as . controller . descriptions . ModelDescriptionConstants . DOMAIN_CONTROLLER , HostResourceDefinition . DC_LOCAL , HostResourceDefinition . DC_REMOTE ) . setStorageRuntime ( ) . setAllowNull ( false ) . build ( ) ; public HostResourceDefinition ( String hostName ) { } @ Override public void registerAttributes ( ManagementResourceRegistration hostRegistration ) { } @ Override public void registerOperations ( ManagementResourceRegistration hostRegistration ) { super . registerOperations ( hostRegistration ) ; hostRegistration . registerOperationHandler ( 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 . registerOperationHandler ( ValidateAddressOperationHandler . OPERATION_NAME , ValidateAddressOperationHandler . INSTANCE , ValidateAddressOperationHandler . INSTANCE , false , EnumSet . of ( READ_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> hostRegistration . registerOperationHandler ( SpecifiedInterfaceResolveHandler . OPERATION_NAME , SpecifiedInterfaceResolveHandler . INSTANCE , SpecifiedInterfaceResolveHandler . INSTANCE ) ; <END_BUG> } }

Fix:
hostRegistration . registerOperationHandler ( DEFINITION , SpecifiedInterfaceResolveHandler . INSTANCE ) ;