protected void PersistEntity(PersistentObject entity)
 {
     using (ISession session = GetSession())
     {
         session.SaveOrUpdate(entity);
         session.Flush();
     }
 }
 public DataSelfDeletingOnDisposalContext(DataCreationHelper creationHelper, PersistentObject[] entities)
 {
     this.creationHelper = creationHelper;
     this.entities = entities;
 }