dbObject = EntityWrapper.get(ObjectInfo.class);
ObjectInfo deleteMarker = new ObjectInfo(bucketName, objectKey);
deleteMarker.setDeleted(true);
try {
ObjectInfo foundDeleteMarker = dbObject.getUnique(deleteMarker);
<BUG>dbObject.delete(foundDeleteMarker);
} catch(EucalyptusCloudException ex) {
LOG.trace("No delete marker found for: " + bucketName + "/" + objectKey);
</BUG>
}

dbObject = EntityWrapper.get(ObjectInfo.class);
List<ObjectInfo> objectInfos = dbObject.query(new ObjectInfo(bucketName, objectKey));
for(ObjectInfo objInfo : objectInfos) {
if (!success) {
if (objInfo.getLast()) {
lastModified = objInfo.getLastModified();
md5 = objInfo.getEtag();
}
success = true;
}
if (!versionId.equals(objInfo.getVersionId())) {
objInfo.setLast(false);
}
}
