@Override
public BackupReceiverRepository wrap(final CacheContainer wrapOn, final BackupReceiverRepository current) {
BackupReceiverRepositoryDelegator delegator = new BackupReceiverRepositoryDelegator(current) {
@Override
public BackupReceiver getBackupReceiver(String originSiteName, String cacheName) {
return new BackupReceiverDelegator(super.getBackupReceiver(originSiteName, cacheName)) {
@Override
public void handleStateTransferState(XSiteStatePushCommand cmd) throws Exception {
checkPoint.trigger("before-chunk");
delegate.handleStateTransferState(cmd);
}