Buggy code:
public abstract class AbstractHornetQComponentControlHandler < T extends HornetQComponentControl > extends AbstractRuntimeOnlyHandler { public static final SimpleAttributeDefinition STARTED = SimpleAttributeDefinitionBuilder . create ( CommonAttributes . STARTED , ModelType . BOOLEAN ) . setFlags ( STORAGE_RUNTIME ) . build ( ) ; private ParametersValidator readAttributeValidator = new ParametersValidator ( ) ; protected AbstractHornetQComponentControlHandler ( ) { } @ Override protected void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { final String operationName = operation . require ( ModelDescriptionConstants . OP ) . asString ( ) ; HornetQComponentControl control = null ; boolean appliedToRuntime = false ; Object handback = null ; if ( ModelDescriptionConstants . READ_ATTRIBUTE_OPERATION . equals ( operationName ) ) { readAttributeValidator . validate ( operation ) ; final String name = operation . require ( CommonAttributes . NAME ) . asString ( ) ; <START_BUG> if ( AbstractHornetQComponentControlHandler . STARTED . equals ( name ) ) { <END_BUG> control = getHornetQComponentControl ( context , operation , false ) ; context . getResult ( ) . set ( control . isStarted ( ) ) ; } else { handleReadAttribute ( name , context , operation ) ; } } else if ( ModelDescriptionConstants . START . equals ( operationName ) ) { control = getHornetQComponentControl ( context , operation , true ) ; try { control . start ( ) ; appliedToRuntime = true ; context . getResult ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else if ( ModelDescriptionConstants . STOP . equals ( operationName ) ) { control = getHornetQComponentControl ( context , operation , true ) ; try { control . stop ( ) ; appliedToRuntime = true ; context . getResult ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else { handback = handleOperation ( operationName , context , operation ) ; appliedToRuntime = handback != null ; } if ( ( ( context . completeStep ( ) ) != ( ResultAction . KEEP ) ) && appliedToRuntime ) { try { if ( ModelDescriptionConstants . START . equals ( operationName ) ) { control . stop ( ) ; } else if ( ModelDescriptionConstants . STOP . equals ( operationName ) ) { control . start ( ) ; } else { handleRevertOperation ( operationName , context , operation , handback ) ; } } catch ( Exception e ) { MessagingLogger . ROOT_LOGGER . revertOperationFailed ( e , getClass ( ) . getSimpleName ( ) , operation . require ( OP ) . asString ( ) , PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ) ; } } } public void register ( final ManagementResourceRegistration registry ) { } protected abstract T getHornetQComponentControl ( HornetQServer hqServer , PathAddress address ) { } protected abstract String getDescriptionPrefix ( ) { } protected void handleReadAttribute ( String attributeName , OperationContext context , ModelNode operation ) throws OperationFailedException { } protected Object handleOperation ( String operationName , OperationContext context , ModelNode operation ) throws OperationFailedException { } protected void handleRevertOperation ( String operationName , OperationContext context , ModelNode operation , Object handback ) { } protected final void unsupportedAttribute ( final String attributeName ) { } protected final void unsupportedOperation ( final String operationName ) { } protected final T getHornetQComponentControl ( final OperationContext context , final ModelNode operation , final boolean forWrite ) throws OperationFailedException { } }

Fix:
if ( AbstractHornetQComponentControlHandler . STARTED . getName ( ) . equals ( name ) ) {