}
for (String delete : deleteFails) {
builder.append("Object with the oid ").append(delete).append(" doesn't exists/is deleted. ");
}
if (builder.length() != 0) {
EDBCheckException checkException = new EDBCheckException(builder.toString());
checkException.setFailedInserts(EDBUtils.convertJPAObjectsToEDBObjects(insertFails));
checkException.setFailedUpdates(EDBUtils.convertJPAObjectsToEDBObjects(updateFails));
checkException.setFailedDeletes(deleteFails);
throw checkException;
}
}