wrapGlobalComponent(cache(NYC, 0).getCacheManager(),
BackupReceiverRepository.class,
new WrapFactory<BackupReceiverRepository, BackupReceiverRepository, CacheContainer>() {
@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 {