final boolean ha = CommonAttributes.HA.resolveModelAttribute(context, model).asBoolean();
final String user = CommonAttributes.USER.resolveModelAttribute(context, model).asString();
final String password = CommonAttributes.PASSWORD.resolveModelAttribute(context, model).asString();
if (discoveryGroupName != null) {
return new BridgeConfiguration(name, queueName, forwardingAddress, filterString, transformerClassName,
minLargeMessageSize, clientFailureCheckPeriod, connectionTTL,
retryInterval, maxRetryInterval, retryIntervalMultiplier, reconnectAttempts,
useDuplicateDetection, confirmationWindowSize,
discoveryGroupName,
ha,
user, password);
} else {
return new BridgeConfiguration(name, queueName, forwardingAddress, filterString, transformerClassName,
minLargeMessageSize, clientFailureCheckPeriod, connectionTTL,
retryInterval, maxRetryInterval, retryIntervalMultiplier, reconnectAttempts,
useDuplicateDetection, confirmationWindowSize,
staticConnectors,
ha,