Buggy code:
public class JMSBridgeHandler extends AbstractRuntimeOnlyHandler { public static final JMSBridgeHandler INSTANCE = new JMSBridgeHandler ( ) ; private ParametersValidator readAttributeValidator = new ParametersValidator ( ) ; private JMSBridgeHandler ( ) { } @ Override protected void executeRuntimeStep ( OperationContext context , ModelNode operation ) throws OperationFailedException { final String bridgeName = PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) . getLastElement ( ) . getValue ( ) ; final String operationName = operation . require ( OP ) . asString ( ) ; final boolean modify ; if ( READ_ATTRIBUTE_OPERATION . equals ( operationName ) ) { modify = false ; } else { modify = true ; } final ServiceName bridgeServiceName = MessagingServices . getJMSBridgeServiceName ( bridgeName ) ; final ServiceController < ? > bridgeService = context . getServiceRegistry ( modify ) . getService ( bridgeServiceName ) ; if ( bridgeService == null ) { throw new OperationFailedException ( MESSAGES . hqServerManagementServiceResourceNotFound ( PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ) ) ; } final JMSBridge bridge = JMSBridge . class . cast ( bridgeService . getValue ( ) ) ; if ( READ_ATTRIBUTE_OPERATION . equals ( operationName ) ) { readAttributeValidator . validate ( operation ) ; final String name = operation . require ( CommonAttributes . NAME ) . asString ( ) ; if ( CommonAttributes . STARTED . equals ( name ) ) { context . getResult ( ) . set ( bridge . isStarted ( ) ) ; } else <START_BUG> if ( CommonAttributes . PAUSED . equals ( name ) ) { <END_BUG> context . getResult ( ) . set ( bridge . isPaused ( ) ) ; } else { throw MessagingMessages . MESSAGES . unsupportedAttribute ( name ) ; } } else if ( START . equals ( operationName ) ) { try { JMSBridgeService service = ( ( JMSBridgeService ) ( bridgeService . getService ( ) ) ) ; service . startBridge ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else if ( STOP . equals ( operationName ) ) { try { bridge . stop ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else if ( JMSBridgeDefinition . PAUSE . equals ( operationName ) ) { try { bridge . pause ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else if ( JMSBridgeDefinition . RESUME . equals ( operationName ) ) { try { bridge . resume ( ) ; } catch ( Exception e ) { context . getFailureDescription ( ) . set ( e . getLocalizedMessage ( ) ) ; } } else { throw MessagingMessages . MESSAGES . unsupportedOperation ( operationName ) ; } context . completeStep ( new OperationContext . RollbackHandler ( ) { @ Override public void handleRollback ( OperationContext context , ModelNode operation ) { try { if ( START . equals ( operationName ) ) { bridge . stop ( ) ; } else if ( STOP . equals ( operationName ) ) { JMSBridgeService service = ( ( JMSBridgeService ) ( bridgeService . getService ( ) ) ) ; service . startBridge ( ) ; } else if ( JMSBridgeDefinition . PAUSE . equals ( operationName ) ) { bridge . resume ( ) ; } else if ( JMSBridgeDefinition . RESUME . equals ( operationName ) ) { bridge . pause ( ) ; } } catch ( Exception e ) { MessagingLogger . ROOT_LOGGER . revertOperationFailed ( e , getClass ( ) . getSimpleName ( ) , operation . require ( ModelDescriptionConstants . OP ) . asString ( ) , PathAddress . pathAddress ( operation . require ( ModelDescriptionConstants . OP_ADDR ) ) ) ; } } } ) ; } }

Fix:
if ( CommonAttributes . PAUSED . getName ( ) . equals ( name ) ) {