final boolean ha = CommonAttributes.HA.validateResolvedOperation(model).asBoolean();
final String user = CommonAttributes.USER.validateResolvedOperation(model).asString();
final String password = CommonAttributes.PASSWORD.validateResolvedOperation(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);
}
}