throw new IllegalStateException("We must ensure that the"
+ " bucket archiver has a " + "lock to the bucket it will transfer");
BucketLock transferLock = new BucketTransferLocker(
LocalFileSystemPaths.create()).getLockForBucket(bucket);
if (!transferLock.tryLockExclusive())
throw new RuntimeException("Could not transfer bucket: " + bucket
+ ", because transfer lock was not accquired");
return asList(bucketLock, transferLock);
}