if (uploadKeyStrings != null) {
for (String uploadKeyStr : uploadKeyStrings) {
try {
Entity userUpload = ds.get(KeyFactory.stringToKey(uploadKeyStr));
if (((User)userUpload.getProperty("user")).equals(user)) {
BlobKey blobKey = (BlobKey)userUpload.getProperty("upload");
Key blobInfoKey = KeyFactory.createKey(
BlobInfoFactory.KIND, blobKey.getKeyString());
keysToDelete.add(blobInfoKey);
keysToDelete.add(userUpload.getKey());
}
} catch (EntityNotFoundException e) {
// Do nothing.