Buggy code:
public class ResourceAdaptersExtension implements Extension { public static final String SUBSYSTEM_NAME = Constants . RESOURCEADAPTERS_NAME ; private static final EnumSet < Flag > RUNTIME_ONLY_FLAG = EnumSet . of ( RUNTIME_ONLY ) ; private static final int MANAGEMENT_API_MAJOR_VERSION = 1 ; private static final int MANAGEMENT_API_MINOR_VERSION = 1 ; private static final int MANAGEMENT_API_MICRO_VERSION = 0 ; @ Override public void initialize ( final ExtensionContext context ) { SUBSYSTEM_RA_LOGGER . debugf ( "Initializing<seq2seq4repair_space>ResourceAdapters<seq2seq4repair_space>Extension" ) ; final SubsystemRegistration registration = context . registerSubsystem ( ResourceAdaptersExtension . SUBSYSTEM_NAME , ResourceAdaptersExtension . MANAGEMENT_API_MAJOR_VERSION , ResourceAdaptersExtension . MANAGEMENT_API_MINOR_VERSION , ResourceAdaptersExtension . MANAGEMENT_API_MICRO_VERSION ) ; ReloadRequiredWriteAttributeHandler disabledRequiredWriteAttributeHandler = new ReloadRequiredWriteAttributeHandler ( ) ; registration . registerXMLElementWriter ( ResourceAdaptersExtension . ResourceAdapterSubsystemParser . INSTANCE ) ; final ManagementResourceRegistration subsystem = registration . registerSubsystemModel ( ResourceAdaptersSubsystemProviders . SUBSYSTEM ) ; subsystem . registerOperationHandler ( ADD , INSTANCE , ResourceAdaptersSubsystemProviders . SUBSYSTEM_ADD_DESC , false ) ; subsystem . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . SUBSYSTEM_REMOVE_DESC , false ) ; <START_BUG> subsystem . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , PRIVATE ) ; <END_BUG> final ManagementResourceRegistration resourceadapter = subsystem . registerSubModel ( PathElement . pathElement ( Constants . RESOURCEADAPTER_NAME ) , ResourceAdaptersSubsystemProviders . RESOURCEADAPTER_DESC ) ; resourceadapter . registerOperationHandler ( ADD , RaAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_RESOURCEADAPTER_DESC , false ) ; resourceadapter . registerOperationHandler ( REMOVE , RaRemove . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_RESOURCEADAPTER_DESC , false ) ; resourceadapter . registerOperationHandler ( "activate" , RaActivate . INSTANCE , ResourceAdaptersSubsystemProviders . ACTIVATE_RA_DESC , false ) ; for ( final SimpleAttributeDefinition attribute : ResourceAdaptersSubsystemProviders . RESOURCEADAPTER_ATTRIBUTE ) { resourceadapter . registerReadWriteAttribute ( attribute , null , disabledRequiredWriteAttributeHandler ) ; } final ManagementResourceRegistration configAdapter = resourceadapter . registerSubModel ( PathElement . pathElement ( Constants . CONFIG_PROPERTIES . getName ( ) ) , ResourceAdaptersSubsystemProviders . CONFIG_PROPERTIES_DESC ) ; configAdapter . registerOperationHandler ( ADD , ConfigPropertyAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_CONFIG_PROPERTIES_DESC , false ) ; configAdapter . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_CONFIG_PROPERTIES_DESC , false ) ; configAdapter . registerReadOnlyAttribute ( CONFIG_PROPERTY_VALUE , null ) ; final ManagementResourceRegistration connectionDefinition = resourceadapter . registerSubModel ( PathElement . pathElement ( Constants . CONNECTIONDEFINITIONS_NAME ) , ResourceAdaptersSubsystemProviders . CONNECTION_DEFINITION_DESC ) ; connectionDefinition . registerOperationHandler ( ADD , ConnectionDefinitionAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_CONNECTION_DEFINITION_DESC , false ) ; connectionDefinition . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_CONNECTION_DEFINITION_DESC , false ) ; for ( final SimpleAttributeDefinition attribute : ResourceAdaptersSubsystemProviders . CONNECTIONDEFINITIONS_NODEATTRIBUTE ) { connectionDefinition . registerReadWriteAttribute ( attribute , null , disabledRequiredWriteAttributeHandler ) ; } final ManagementResourceRegistration configCF = connectionDefinition . registerSubModel ( PathElement . pathElement ( Constants . CONFIG_PROPERTIES . getName ( ) ) , ResourceAdaptersSubsystemProviders . CONFIG_PROPERTIES_DESC ) ; configCF . registerOperationHandler ( ADD , CDConfigPropertyAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_CONFIG_PROPERTIES_DESC , false ) ; configCF . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_CONFIG_PROPERTIES_DESC , false ) ; configCF . registerReadOnlyAttribute ( CONFIG_PROPERTY_VALUE , null ) ; final ManagementResourceRegistration adminObject = resourceadapter . registerSubModel ( PathElement . pathElement ( Constants . ADMIN_OBJECTS_NAME ) , ResourceAdaptersSubsystemProviders . ADMIN_OBJECT_DESC ) ; adminObject . registerOperationHandler ( ADD , AdminObjectAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_ADMIN_OBJECT_DESC , false ) ; adminObject . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_ADMIN_OBJECT_DESC , false ) ; for ( final SimpleAttributeDefinition attribute : ResourceAdaptersSubsystemProviders . ADMIN_OBJECTS_NODEATTRIBUTE ) { adminObject . registerReadWriteAttribute ( attribute , null , disabledRequiredWriteAttributeHandler ) ; } final ManagementResourceRegistration configAO = adminObject . registerSubModel ( PathElement . pathElement ( Constants . CONFIG_PROPERTIES . getName ( ) ) , ResourceAdaptersSubsystemProviders . CONFIG_PROPERTIES_DESC ) ; configAO . registerOperationHandler ( ADD , AOConfigPropertyAdd . INSTANCE , ResourceAdaptersSubsystemProviders . ADD_CONFIG_PROPERTIES_DESC , false ) ; configAO . registerOperationHandler ( REMOVE , ReloadRequiredRemoveStepHandler . INSTANCE , ResourceAdaptersSubsystemProviders . REMOVE_CONFIG_PROPERTIES_DESC , false ) ; configAO . registerReadOnlyAttribute ( CONFIG_PROPERTY_VALUE , null ) ; if ( context . isRuntimeOnlyRegistrationValid ( ) ) { connectionDefinition . registerOperationHandler ( "flush-idle-connection-in-pool" , RA_INSTANCE , ResourceAdaptersSubsystemProviders . FLUSH_IDLE_CONNECTION_DESC , false , ResourceAdaptersExtension . RUNTIME_ONLY_FLAG ) ; connectionDefinition . registerOperationHandler ( "flush-all-connection-in-pool" , PoolOperations . FlushAllConnectionInPool . RA_INSTANCE , ResourceAdaptersSubsystemProviders . FLUSH_ALL_CONNECTION_DESC , false , ResourceAdaptersExtension . RUNTIME_ONLY_FLAG ) ; connectionDefinition . registerOperationHandler ( "test-connection-in-pool" , PoolOperations . TestConnectionInPool . RA_INSTANCE , ResourceAdaptersSubsystemProviders . TEST_CONNECTION_DESC , false , ResourceAdaptersExtension . RUNTIME_ONLY_FLAG ) ; } } @ Override public void initializeParsers ( final ExtensionParsingContext context ) { } public static final class ResourceAdapterSubsystemParser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { static final ResourceAdaptersExtension . ResourceAdapterSubsystemParser INSTANCE = new ResourceAdaptersExtension . ResourceAdapterSubsystemParser ( ) ; @ Override public void writeContent ( XMLExtendedStreamWriter writer , SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeRaElement ( XMLExtendedStreamWriter streamWriter , ModelNode ra ) throws XMLStreamException { } private void writeConfigProperties ( XMLExtendedStreamWriter streamWriter , ModelNode ra ) throws XMLStreamException { } private void writeNewConfigProperties ( XMLExtendedStreamWriter streamWriter , ModelNode ra ) throws XMLStreamException { } private void writeProperty ( XMLExtendedStreamWriter writer , ModelNode node , String name , String value , String localName ) throws XMLStreamException { } private void writeAdminObject ( XMLExtendedStreamWriter streamWriter , ModelNode adminObject , final String poolName ) throws XMLStreamException { } private void writeConDef ( XMLExtendedStreamWriter streamWriter , ModelNode conDef , final String poolName , final boolean isXa ) throws XMLStreamException { } @ Override public void readElement ( final XMLExtendedStreamReader reader , final List < ModelNode > list ) throws XMLStreamException { } } private static void setStringIfNotNull ( final ModelNode node , final String identifier , final String value ) { } private static void setExtensionIfNotNull ( final ModelNode dsModel , final String extensionclassname , final String extensionProperties , final org . jboss . jca . common . api . metadata . common . Extension extension ) { } private static void setBooleanIfNotNull ( final ModelNode node , final String identifier , final Boolean value ) { }

Fix:
subsystem . registerOperationHandler ( DEFINITION , GenericSubsystemDescribeHandler . INSTANCE ) ;