Buggy code:
public class TransactionExtension implements Extension { public static final String SUBSYSTEM_NAME = "transactions" ; public static final String RESOLVE_OBJECT_STORE_PATH = "resolve-object-store-path" ; private static final String RESOURCE_NAME = ( TransactionExtension . class . getPackage ( ) . getName ( ) ) + ".LocalDescriptions" ; private static final int MANAGEMENT_API_MAJOR_VERSION = 3 ; private static final int MANAGEMENT_API_MINOR_VERSION = 0 ; private static final int MANAGEMENT_API_MICRO_VERSION = 0 ; private static final ServiceName MBEAN_SERVER_SERVICE_NAME = JBOSS . append ( "mbean" , "server" ) ; static final PathElement LOG_STORE_PATH = PathElement . pathElement ( LOG_STORE , LOG_STORE ) ; static final PathElement SUBSYSTEM_PATH = PathElement . pathElement ( SUBSYSTEM , TransactionExtension . SUBSYSTEM_NAME ) ; static final PathElement PARTICIPANT_PATH = PathElement . pathElement ( PARTICIPANTS ) ; static final PathElement TRANSACTION_PATH = PathElement . pathElement ( TRANSACTIONS ) ; static StandardResourceDescriptionResolver getResourceDescriptionResolver ( final String ... keyPrefix ) { } static MBeanServer getMBeanServer ( OperationContext context ) { } public void initialize ( ExtensionContext context ) { ROOT_LOGGER . debug ( "Initializing<seq2seq4repair_space>Transactions<seq2seq4repair_space>Extension" ) ; final LogStoreResource resource = new LogStoreResource ( ) ; final boolean registerRuntimeOnly = context . isRuntimeOnlyRegistrationValid ( ) ; final SubsystemRegistration subsystem = context . registerSubsystem ( TransactionExtension . SUBSYSTEM_NAME , TransactionExtension . MANAGEMENT_API_MAJOR_VERSION , TransactionExtension . MANAGEMENT_API_MINOR_VERSION , TransactionExtension . MANAGEMENT_API_MICRO_VERSION ) ; final TransactionSubsystemRootResourceDefinition rootResourceDefinition = new TransactionSubsystemRootResourceDefinition ( registerRuntimeOnly ) ; final ManagementResourceRegistration registration = subsystem . registerSubsystemModel ( rootResourceDefinition ) ; registration . registerOperationHandler ( DEFINITION , INSTANCE ) ; if ( context . getProcessType ( ) . isServer ( ) ) { final ResolvePathHandler objectStorePathHandler = Builder . of ( TransactionExtension . RESOLVE_OBJECT_STORE_PATH , context . getPathManager ( ) ) . setPathAttribute ( OBJECT_STORE_PATH ) . setRelativeToAttribute ( OBJECT_STORE_RELATIVE_TO ) . build ( ) ; registration . registerOperationHandler ( objectStorePathHandler . getOperationDefinition ( ) , objectStorePathHandler ) ; final ResolvePathHandler resolvePathHandler = Builder . of ( context . getPathManager ( ) ) . setPathAttribute ( PATH ) . setRelativeToAttribute ( RELATIVE_TO ) . setDeprecated ( ModelVersion . create ( 1 , 4 ) ) . build ( ) ; registration . registerOperationHandler ( resolvePathHandler . getOperationDefinition ( ) , resolvePathHandler ) ; } <START_BUG> ManagementResourceRegistration logStoreChild = registration . registerSubModel ( new LogStoreDefinition ( resource ) ) ; <END_BUG> if ( registerRuntimeOnly ) { ManagementResourceRegistration transactionChild = logStoreChild . registerSubModel ( new LogStoreTransactionDefinition ( resource ) ) ; transactionChild . registerSubModel ( LogStoreTransactionParticipantDefinition . INSTANCE ) ; } subsystem . registerXMLElementWriter ( TransactionSubsystemXMLPersister . INSTANCE ) ; if ( context . isRegisterTransformers ( ) ) { TransactionExtension . registerTransformers ( subsystem ) ; } } public void initializeParsers ( ExtensionParsingContext context ) { } private static void registerTransformers ( final SubsystemRegistration subsystem ) { } private static class UnneededJDBCStoreChecker implements DiscardAttributeChecker { static final TransactionExtension . UnneededJDBCStoreChecker INSTANCE = new TransactionExtension . UnneededJDBCStoreChecker ( ) ; @ Override public boolean isDiscardExpressions ( ) { } @ Override public boolean isDiscardUndefined ( ) { } @ Override public boolean isOperationParameterDiscardable ( PathAddress address , String attributeName , ModelNode attributeValue , ModelNode operation , TransformationContext context ) { } @ Override public boolean isResourceAttributeDiscardable ( PathAddress address , String attributeName , ModelNode attributeValue , TransformationContext context ) { } boolean discard ( final ModelNode model ) { } } private static class RejectHornetQStoreAsyncIOChecker extends RejectAttributeChecker . DefaultRejectAttributeChecker { static final TransactionExtension . RejectHornetQStoreAsyncIOChecker INSTANCE = new TransactionExtension . RejectHornetQStoreAsyncIOChecker ( ) ; @ Override public String getRejectionLogMessage ( Map < String , ModelNode > attributes ) { } @ Override public boolean rejectOperationParameter ( PathAddress address , String attributeName , ModelNode attributeValue , ModelNode operation , TransformationContext context ) { } @ Override public boolean rejectResourceAttribute ( PathAddress address , String attributeName , ModelNode attributeValue , TransformationContext context ) { } protected boolean rejectCheck ( PathAddress address , String attributeName , ModelNode attributeValue , ModelNode model ) { } @ Override protected boolean rejectAttribute ( PathAddress address , String attributeName , ModelNode attributeValue , TransformationContext context ) { } } private static class ProcessIdUuidConverter extends AttributeConverter . DefaultAttributeConverter { static final TransactionExtension . ProcessIdUuidConverter INSTANCE = new TransactionExtension . ProcessIdUuidConverter ( ) ; @ Override protected void convertAttribute ( PathAddress address , String attributeName , ModelNode attributeValue , TransformationContext context ) { } } }

Fix:
ManagementResourceRegistration logStoreChild = registration . registerSubModel ( new LogStoreDefinition ( resource , registerRuntimeOnly ) ) ;