public BucketBuilder(Bucket base) { if (base.getKey() == null) { this._key = new BucketKey( base.getBucketId() ); this._bucketId = base.getBucketId(); } else { this._key = base.getKey(); this._bucketId = _key.getBucketId(); } this._action = base.getAction(); this._watchGroup = base.getWatchGroup(); this._watchPort = base.getWatchPort(); this._weight = base.getWeight(); if (base instanceof BucketImpl) { BucketImpl _impl = (BucketImpl) base; this.augmentation = new HashMap<>(_impl.augmentation); } }