AdvancedCacheLoader<Object, Object> stProvider = persistenceManager.getStateTransferProvider();
if (stProvider != null) {
if (debug) {
log.debugf("[X-Site State Transfer - %s] start Persistence iteration", xSiteBackup.getSiteName());
}
KeyFilter<Object> filter = new CacheLoaderFilter(new ReadOnlyDataContainerBackedKeySet(dataContainer));
StateTransferCacheLoaderTask task = new StateTransferCacheLoaderTask(xSiteBackup, chunk, chunkSize,
backupResponseQueue, canceled);
try {
stProvider.process(filter, task, EXECUTOR_SERVICE, true, true);
if (canceled.get()) {