List<ReplicationTransportHandler> transportHandlers = new ArrayList<ReplicationTransportHandler>();
for (String endpoint : endpoints) {
if (endpoint != null && endpoint.length() > 0) {
transportHandlers.add(new SimpleHttpReplicationTransportHandler(transportAuthenticationProvider,
new ReplicationEndpoint(endpoint), packageBuilder, pollItems));
}
}
transportHandler = new MultipleEndpointReplicationTransportHandler(transportHandlers,
transportEndpointStrategyType);