logObj.debug("no cached snapshot for ObjectId: " + oid);
}
// try getting it from database
Query query = new ObjectIdQuery(oid, true, ObjectIdQuery.CACHE_REFRESH);
List results = channel.onQuery(null, query).firstList();
if (results.size() > 1) {
throw new CayenneRuntimeException("More than 1 object found for ObjectId "
+ oid