Buggy code:
public class BridgeAdd extends AbstractAddStepHandler implements DescriptionProvider { public static ModelNode getAddOperation ( final ModelNode address , ModelNode subModel ) { } public static final BridgeAdd INSTANCE = new BridgeAdd ( ) ; private BridgeAdd ( ) { } @ 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 { } @ Override public ModelNode getModelDescription ( Locale locale ) { } static void addBridgeConfigs ( final OperationContext context , final Configuration configuration , final ModelNode model ) throws OperationFailedException { } static BridgeConfiguration createBridgeConfiguration ( final OperationContext context , final String name , final ModelNode model ) throws OperationFailedException { final String queueName = QUEUE_NAME . resolveModelAttribute ( context , model ) . asString ( ) ; final ModelNode forwardingNode = BRIDGE_FORWARDING_ADDRESS . resolveModelAttribute ( context , model ) ; final String forwardingAddress = ( forwardingNode . isDefined ( ) ) ? forwardingNode . asString ( ) : null ; final ModelNode filterNode = FILTER . resolveModelAttribute ( context , model ) ; final String filterString = ( filterNode . isDefined ( ) ) ? filterNode . asString ( ) : null ; final ModelNode transformerNode = TRANSFORMER_CLASS_NAME . resolveModelAttribute ( context , model ) ; final String transformerClassName = ( transformerNode . isDefined ( ) ) ? transformerNode . asString ( ) : null ; final long retryInterval = RETRY_INTERVAL . resolveModelAttribute ( context , model ) . asLong ( ) ; final double retryIntervalMultiplier = RETRY_INTERVAL_MULTIPLIER . resolveModelAttribute ( context , model ) . asDouble ( ) ; final int reconnectAttempts = BRIDGE_RECONNECT_ATTEMPTS . resolveModelAttribute ( context , model ) . asInt ( ) ; final boolean useDuplicateDetection = BRIDGE_USE_DUPLICATE_DETECTION . resolveModelAttribute ( context , model ) . asBoolean ( ) ; <START_BUG> final int confirmationWindowSize = CONFIRMATION_WINDOW_SIZE . resolveModelAttribute ( context , model ) . asInt ( ) ; <END_BUG> final long clientFailureCheckPeriod = HornetQClient . DEFAULT_CLIENT_FAILURE_CHECK_PERIOD ; final ModelNode discoveryNode = DISCOVERY_GROUP_NAME . resolveModelAttribute ( context , model ) ; final String discoveryGroupName = ( discoveryNode . isDefined ( ) ) ? discoveryNode . asString ( ) : null ; List < String > staticConnectors = ( discoveryGroupName == null ) ? BridgeAdd . getStaticConnectors ( model ) : null ; final boolean ha = HA . resolveModelAttribute ( context , model ) . asBoolean ( ) ; final String user = USER . resolveModelAttribute ( context , model ) . asString ( ) ; final String password = PASSWORD . resolveModelAttribute ( context , model ) . asString ( ) ; if ( discoveryGroupName != null ) { return new BridgeConfiguration ( name , queueName , forwardingAddress , filterString , transformerClassName , retryInterval , retryIntervalMultiplier , reconnectAttempts , useDuplicateDetection , confirmationWindowSize , clientFailureCheckPeriod , discoveryGroupName , ha , user , password ) ; } else { return new BridgeConfiguration ( name , queueName , forwardingAddress , filterString , transformerClassName , retryInterval , retryIntervalMultiplier , reconnectAttempts , useDuplicateDetection , confirmationWindowSize , clientFailureCheckPeriod , staticConnectors , ha , user , password ) ; } } private static List < String > getStaticConnectors ( ModelNode model ) { } static void createBridge ( String name , BridgeConfiguration bridgeConfig , HornetQServerControl serverControl ) { } }

Fix:
final int confirmationWindowSize = BRIDGE_CONFIRMATION_WINDOW_SIZE . resolveModelAttribute ( context , model ) . asInt ( ) ;