Buggy code:
class TransportConfigOperationHandlers { static AttributeDefinition [ ] GENERIC = new AttributeDefinition [ ] { CommonAttributes . FACTORY_CLASS , CommonAttributes . SOCKET_BINDING_OPTIONAL } ; static AttributeDefinition [ ] REMOTE = new AttributeDefinition [ ] { CommonAttributes . SOCKET_BINDING } ; static AttributeDefinition [ ] IN_VM = new AttributeDefinition [ ] { CommonAttributes . SERVER_ID } ; static final OperationStepHandler GENERIC_ADD = new TransportConfigOperationHandlers . BasicTransportConfigAdd ( TransportConfigOperationHandlers . GENERIC ) ; static final TransportConfigOperationHandlers . SelfRegisteringAttributeHandler GENERIC_ATTR = new TransportConfigOperationHandlers . AttributeWriteHandler ( TransportConfigOperationHandlers . GENERIC ) ; static final OperationStepHandler REMOTE_ADD = new TransportConfigOperationHandlers . BasicTransportConfigAdd ( TransportConfigOperationHandlers . REMOTE ) ; static final TransportConfigOperationHandlers . SelfRegisteringAttributeHandler REMOTE_ATTR = new TransportConfigOperationHandlers . AttributeWriteHandler ( TransportConfigOperationHandlers . REMOTE ) ; static final OperationStepHandler IN_VM_ADD = new TransportConfigOperationHandlers . BasicTransportConfigAdd ( TransportConfigOperationHandlers . IN_VM ) ; static final TransportConfigOperationHandlers . SelfRegisteringAttributeHandler IN_VM_ATTR = new TransportConfigOperationHandlers . AttributeWriteHandler ( TransportConfigOperationHandlers . IN_VM ) ; static final OperationStepHandler REMOVE = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; static final OperationStepHandler PARAM_ADD = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; static final OperationStepHandler PARAM_ATTR = new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } } ; static ModelNode createAddOperation ( final ModelNode address , final ModelNode node ) { } static void reloadRequiredStep ( final OperationContext context ) { <START_BUG> if ( ( context . getType ( ) ) == ( Type . SERVER ) ) { <END_BUG> context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final ServiceName hqServiceName = MessagingServices . getHornetQServiceName ( PathAddress . pathAddress ( operation . get ( OP_ADDR ) ) ) ; final ServiceController < ? > controller = context . getServiceRegistry ( false ) . getService ( hqServiceName ) ; if ( controller != null ) { context . reloadRequired ( ) ; } context . completeStep ( ) ; } } , RUNTIME ) ; } } static void processAcceptors ( final Configuration configuration , final ModelNode params , final Set < String > bindings ) { } static Map < String , Object > getParameters ( final ModelNode config ) { } static void processConnectors ( final Configuration configuration , final ModelNode params , final Set < String > bindings ) { } private static class BasicTransportConfigAdd implements OperationStepHandler { private final AttributeDefinition [ ] attributes ; BasicTransportConfigAdd ( final AttributeDefinition [ ] attributes ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { } void process ( ModelNode subModel , ModelNode operation ) { } } interface SelfRegisteringAttributeHandler extends OperationStepHandler { void registerAttributes ( final ManagementResourceRegistration registry , boolean registerRuntimeOnly ) { } } static class AttributeWriteHandler extends ReloadRequiredWriteAttributeHandler implements TransportConfigOperationHandlers . SelfRegisteringAttributeHandler { final AttributeDefinition [ ] attributes ; private AttributeWriteHandler ( AttributeDefinition [ ] attributes ) { } public void registerAttributes ( final ManagementResourceRegistration registry , boolean registerRuntimeOnly ) { } } }

Fix:
if ( context . isNormalServer ( ) ) {