Buggy code:
public class RemotingExtension implements Extension { public static final String SUBSYSTEM_NAME = "remoting" ; private static final String RESOURCE_NAME = ( RemotingExtension . class . getPackage ( ) . getName ( ) ) + ".LocalDescriptions" ; private static final String NODE_NAME_PROPERTY = "jboss.node.name" ; static final String NODE_NAME ; static ResourceDescriptionResolver getResourceDescriptionResolver ( final String keyPrefix ) { } @ Override public void initialize ( ExtensionContext context ) { final SubsystemRegistration registration = context . registerSubsystem ( RemotingExtension . SUBSYSTEM_NAME ) ; registration . registerXMLElementWriter ( INSTANCE ) ; <START_BUG> final ManagementResourceRegistration subsystem = registration . registerSubsystemModel ( RemotingSubsystemRootResource . INSTANCE ) ; <END_BUG> subsystem . registerOperationHandler ( DESCRIBE , GenericSubsystemDescribeHandler . INSTANCE , GenericSubsystemDescribeHandler . INSTANCE , false , PRIVATE ) ; final ManagementResourceRegistration connector = subsystem . registerSubModel ( ConnectorResource . INSTANCE ) ; connector . registerSubModel ( PropertyResource . INSTANCE ) ; final ManagementResourceRegistration sasl = connector . registerSubModel ( SaslResource . INSTANCE ) ; sasl . registerSubModel ( SaslPolicyResource . INSTANCE ) ; sasl . registerSubModel ( PropertyResource . INSTANCE ) ; subsystem . registerSubModel ( RemoteOutboundConnnectionResourceDefinition . INSTANCE ) ; subsystem . registerSubModel ( LocalOutboundConnectionResourceDefinition . INSTANCE ) ; subsystem . registerSubModel ( GenericOutboundConnectionResourceDefinition . INSTANCE ) ; } @ Override public void initializeParsers ( ExtensionParsingContext context ) { } static final class RemotingSubsystem10Parser implements XMLStreamConstants , XMLElementReader < List < ModelNode > > , XMLElementWriter < SubsystemMarshallingContext > { private static final RemotingExtension . RemotingSubsystem10Parser INSTANCE = new RemotingExtension . RemotingSubsystem10Parser ( ) ; @ Override public void readElement ( XMLExtendedStreamReader reader , List < ModelNode > list ) throws XMLStreamException { } void parseWorkerThreadPool ( final XMLExtendedStreamReader reader , final ModelNode subsystemAdd ) throws XMLStreamException { } void parseConnector ( XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } void parseSaslElement ( final XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } ModelNode parsePolicyElement ( XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } private void parseProperties ( XMLExtendedStreamReader reader , final ModelNode address , final List < ModelNode > list ) throws XMLStreamException { } @ Override public void writeContent ( final XMLExtendedStreamWriter writer , final SubsystemMarshallingContext context ) throws XMLStreamException { } private void writeWorkerThreadPoolIfAttributesSet ( final XMLExtendedStreamWriter writer , final ModelNode model ) throws XMLStreamException { } private void writeConnector ( final XMLExtendedStreamWriter writer , final ModelNode node , final String name ) throws XMLStreamException { } private void writeProperties ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writeSasl ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } private void writePolicy ( final XMLExtendedStreamWriter writer , final ModelNode node ) throws XMLStreamException { } } }

Fix:
final ManagementResourceRegistration subsystem = registration . registerSubsystemModel ( new RemotingSubsystemRootResource ( context . getProcessType ( ) ) ) ;