versioning = true;
EntityWrapper<ObjectInfo> dbObject = db.recast(ObjectInfo.class);
ObjectInfo searchObjectInfo = new ObjectInfo(bucketName, objectKey);
searchObjectInfo.setVersionId(request.getVersionId());
searchObjectInfo.setDeleted(false);
<BUG>if(request.getVersionId() == null)

searchObjectInfo.setLast(true);
List<ObjectInfo> objectInfos = dbObject.query(searchObjectInfo);</BUG>
if (objectInfos.size() > 0) {

versioning = true;
EntityWrapper<ObjectInfo> dbObject = db.recast(ObjectInfo.class);
ObjectInfo searchObjectInfo = new ObjectInfo(bucketName, objectKey);
searchObjectInfo.setVersionId(request.getVersionId());
searchObjectInfo.setDeleted(false);
if(request.getVersionId() == null) {
searchObjectInfo.setLast(true);
}
List<ObjectInfo> objectInfos = dbObject.query(searchObjectInfo);
if (objectInfos.size() > 0) {
