OID oid = _tracker.getOIDForObject(toCommit);
if (_tracker.isDeleted(toCommit)) {
// Object has been deleted inside transaction,
// engine must forget about it.
engine.forgetObject(this, oid);
} else {
// Object has been created/accessed inside the
// transaction, release its lock.
if (_tracker.isUpdateCacheNeeded(toCommit)) {
engine.updateCache(this, oid, toCommit);