for (int i = 0; i < senders.length; i++) {
ClusterSender sender;
if ("pooled".equals(cluster.getSenderReplicationMode())) {
sender = new PooledClusterSender();
} else if ("synchronous".equals(cluster.getSenderReplicationMode())) {
sender = new SyncClusterSender();
} else if ("asynchronous".equals(cluster.getSenderReplicationMode()) ||
"fastasyncqueue".equals(cluster.getSenderReplicationMode())) {
sender = new AsyncClusterSender();