}
getDataContext().invalidateObjects(Collections.singletonList(obj));
}
catch (CayenneRuntimeException e)
{
tg.doCatch();
// We assume that the object doesn't exist any more.
String msg = LogUtil.error(getClass(), "Persistence error.", e);
throw new PersistentObjectNotFoundException(msg, e);
}