code: public void setBucket(Bucket<Data> bucket) throws BucketContainerException, InterruptedException {
          buckets[bucket.getBucketId()] = bucket;
      }
docs: sets a new bucket. The bucketId is read from the given {@link Bucket}-object
  
  @param bucket
  the {@link Bucket}-object to add
  @throws BucketContainerException
  @throws InterruptedException