response.setResultCode(404);
return response;
} else {
// Providing versionId is non-null, then just delete the one item that matches the versionId from the database
storedPath = item.getStoredPath();
sobject.deleteItem(item.getId());
objectDao.update(sobject.getId(), sobject);
response.setResultDescription("<VersionId>" + wantVersion + "</VersionId>");
}
}
} else { // If versioning is off then we do delete the null object