/**
* Completes the multipart upload and returns the result.
*/
private CopyResult completeMultipartUpload() {
CompleteMultipartUploadResult completeMultipartUploadResult = s3
.completeMultipartUpload(new CompleteMultipartUploadRequest(
copyObjectRequest.getDestinationBucketName(),
copyObjectRequest.getDestinationKey(), uploadId,
collectPartETags()));
copyComplete();
CopyResult copyResult = new CopyResult();
copyResult.setSourceBucketName(copyObjectRequest.getSourceBucketName());
copyResult.setSourceKey(copyObjectRequest.getSourceKey());
copyResult.setDestinationBucketName(completeMultipartUploadResult
.getBucketName());
copyResult.setDestinationKey(completeMultipartUploadResult.getKey());
copyResult.setETag(completeMultipartUploadResult.getETag());
copyResult.setVersionId(completeMultipartUploadResult.getVersionId());
return copyResult;
}