private void Cleanup()
 {
     Sessions.Close();
     Sessions           = null;
     connectionProvider = null;
     lastOpenedSession  = null;
 }
 protected virtual void BuildSessionFactory()
 {
     Sessions           = (ISessionFactoryImplementor)BuildConfiguration().BuildSessionFactory();
     connectionProvider = Sessions.ConnectionProvider as DebugConnectionProvider;
 }