private class CopyBucketUnderLock implements SharedLockBucketHandler {
@Override
public void handleSharedLockedBucket(Bucket bucket) {
logger.info(will("call copy bucket endpoint", "bucket", bucket));
LocalBucket localBucket = (LocalBucket) bucket;
try {
endpoint.call(localBucket);
logger.info(done("calling copy bucket endpoint", "bucket", bucket));
receipts.createReceipt(localBucket);
} catch (RuntimeException e) {