List<ReplicationTransportHandler> transportHandlers = new ArrayList<ReplicationTransportHandler>();
for (String endpoint : endpoints) {
if (endpoint != null && endpoint.length() > 0) {
transportHandlers.add(new AdvancedHttpReplicationTransportHandler(useCustomHeaders, customHeaders,
useCustomBody, customBody,
transportAuthenticationProvider,
new ReplicationEndpoint(endpoint), null, -1));
}
}