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 ) ; final ServiceName hqServiceName = MessagingServices . getHornetQServiceName ( PathAddress . pathAddress ( operation . get ( ModelDescriptionConstants . OP_ADDR ) ) ) ; ServiceController < ? > hqService = registry . getService ( hqServiceName ) ; if ( hqService != null ) { context . reloadRequired ( ) ; } else { final ServiceTarget target = context . getServiceTarget ( ) ; if ( model . hasDefined ( SOCKET_BINDING . getName ( ) ) ) { final GroupBindingService bindingService = new GroupBindingService ( ) ; target . addService ( GroupBindingService . getDiscoveryBaseServiceName ( hqServiceName ) . 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 . resolveModelAttribute ( context , model ) ; final String localAddress = ( localAddrNode . isDefined ( ) ) ? localAddrNode . asString ( ) : null ; final String groupAddress = GROUP_ADDRESS . resolveModelAttribute ( context , model ) . asString ( ) ; final int groupPort = GROUP_PORT . resolveModelAttribute ( context , 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 ) ; <START_BUG> final SocketBinding socketBinding = new SocketBinding ( name , ( - 1 ) , false , group , groupPort , b , null ) ; <END_BUG> final GroupBindingService bindingService = new GroupBindingService ( ) ; target . addService ( GroupBindingService . getDiscoveryBaseServiceName ( hqServiceName ) . append ( name ) , bindingService ) . addInjectionValue ( bindingService . getBindingRef ( ) , new org . jboss . msc . value . ImmediateValue < SocketBinding > ( socketBinding ) ) . install ( ) ; } catch ( Exception e ) { throw new OperationFailedException ( new ModelNode ( ) . set ( e . getLocalizedMessage ( ) ) ) ; } } } } @ Override public ModelNode getModelDescription ( Locale locale ) { } static void addDiscoveryGroupConfigs ( final OperationContext context , final Configuration configuration , final ModelNode model ) throws OperationFailedException { } static DiscoveryGroupConfiguration createDiscoveryGroupConfiguration ( final OperationContext context , final String name , final ModelNode model ) throws OperationFailedException { } static DiscoveryGroupConfiguration createDiscoveryGroupConfiguration ( final String name , final DiscoveryGroupConfiguration config , final SocketBinding socketBinding ) { } }

Fix:
final SocketBinding socketBinding = new SocketBinding ( name , ( - 1 ) , false , group , groupPort , b , null , null ) ;