/// <summary> /// Try to initialize a Collection from the cache. /// </summary> /// <param name="id"></param> /// <param name="owner"></param> /// <param name="persister"></param> /// <param name="collection"></param> /// <returns><c>true</c> if the collection was initialized from the cache, otherwise <c>false</c>.</returns> private bool InitializeCollectionFromCache( object id, object owner, ICollectionPersister persister, PersistentCollection collection ) { if( !persister.HasCache ) { return false; } else { object cached = persister.Cache.Get( id, Timestamp ); if( cached == null ) { return false; } else { collection.InitializeFromCache( persister, cached, owner ); GetCollectionEntry( collection ).PostInitialize( collection ); //addInitializedCollection(collection, persister, id); h2.1 - commented out return true; } } }