// This will assgin sequence numbers.
IdentityHashtable allObjects = collectAndPrepareObjectsForCommit();
// Must clone because the commitManager will remove the objects from the collection
// as the objects are written to the database.
setAllClonesCollection((IdentityHashtable)allObjects.clone());
// Iterate over each clone and let the object build merge to clones into the originals.
// The change set may already exist if using change tracking.
if (getUnitOfWorkChangeSet() == null) {
setUnitOfWorkChangeSet(new UnitOfWorkChangeSet());
}