public static SearchFactoryImpl GetSearchFactory(Configuration cfg)
        {
            if (contexts == null)
            {
                contexts = new WeakHashtable();
            }

            SearchFactoryImpl searchFactory = (SearchFactoryImpl) contexts[cfg];
            if (searchFactory == null)
            {
                searchFactory = new SearchFactoryImpl(cfg);
                contexts[cfg] = searchFactory;
            }
            return searchFactory;
        }
		public void IsSerializable()
		{
			WeakHashtable weakHashtable = new WeakHashtable();
			weakHashtable.Add("key", new object());
			NHAssert.IsSerializable(weakHashtable);
		}
 /**
  * in transaction work
  */
 public PostTransactionWorkQueueSynchronization(IQueueingProcessor queueingProcessor,
     WeakHashtable queuePerTransaction)
 {
     this.queueingProcessor = queueingProcessor;
     this.queuePerTransaction = queuePerTransaction;
 }