Buggy code:
public class DiscoveryGroupAdd extends AbstractAddStepHandler implements DescriptionProvider { private static final OperationValidator VALIDATOR = new OperationValidator . AttributeDefinitionOperationValidator ( CommonAttributes . DISCOVERY_GROUP_ATTRIBUTES ) ; public static ModelNode getAddOperation ( final ModelNode address , ModelNode subModel ) { } public static final DiscoveryGroupAdd INSTANCE = new DiscoveryGroupAdd ( ) ; private DiscoveryGroupAdd ( ) { } @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } @ Override protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { final PathAddress address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final String name = address . getLastElement ( ) . getValue ( ) ; ServiceRegistry registry = context . getServiceRegistry ( false ) ; ServiceController < ? > hqService = registry . getService ( JBOSS_MESSAGING ) ; if ( hqService != null ) { context . reloadRequired ( ) ; } else { final ServiceTarget target = context . getServiceTarget ( ) ; if ( model . hasDefined ( SOCKET_BINDING . getName ( ) ) ) { final GroupBindingService bindingService = new GroupBindingService ( ) ; target . addService ( DISCOVERY . append ( name ) , bindingService ) . addDependency ( JBOSS_BINDING_NAME . append ( model . get ( SOCKET_BINDING ) . asString ( ) ) , SocketBinding . class , bindingService . getBindingRef ( ) ) . install ( ) ; } else { final ModelNode localAddrNode = LOCAL_BIND_ADDRESS . validateResolvedOperation ( model ) ; final String localAddress = ( localAddrNode . isDefined ( ) ) ? localAddrNode . asString ( ) : null ; final String groupAddress = GROUP_ADDRESS . validateResolvedOperation ( model ) . asString ( ) ; final int groupPort = GROUP_PORT . validateResolvedOperation ( model ) . asInt ( ) ; try { final InetAddress inet = ( localAddress != null ) ? InetAddress . getByName ( localAddress ) : InetAddress . getLocalHost ( ) ; final NetworkInterface intf = NetworkInterface . getByInetAddress ( inet ) ; final NetworkInterfaceBinding b = new NetworkInterfaceBinding ( Collections . singleton ( intf ) , inet ) ; final InetAddress group = InetAddress . getByName ( groupAddress ) ; final SocketBinding socketBinding = new SocketBinding ( name , ( - 1 ) , false , group , groupPort , b , null ) ; final GroupBindingService bindingService = new GroupBindingService ( ) ; target . addService ( DISCOVERY . append ( name ) , bindingService ) . addInjectionValue ( bindingService . getBindingRef ( ) , new org . jboss . msc . value . ImmediateValue < SocketBinding > ( socketBinding ) ) . install ( ) ; } catch ( Exception e ) { <START_BUG> throw new OperationFailedException ( new ModelNode ( ) . set ( e . getMessage ( ) ) ) ; <END_BUG> } } } } @ Override public ModelNode getModelDescription ( Locale locale ) { } static void addDiscoveryGroupConfigs ( final Configuration configuration , final ModelNode model ) throws OperationFailedException { } static DiscoveryGroupConfiguration createDiscoveryGroupConfiguration ( final String name , final ModelNode model ) throws OperationFailedException { } static DiscoveryGroupConfiguration createDiscoveryGroupConfiguration ( final String name , final DiscoveryGroupConfiguration config , final SocketBinding socketBinding ) { } }

Fix:
throw new OperationFailedException ( new ModelNode ( ) . set ( e . getLocalizedMessage ( ) ) ) ;