public void Cleanup()
 {
     foreach (var entity in _context.GetEntities())
     {
         if (entity.isDeletionMark)
         {
             entity.Destroy();
         }
         else
         {
             entity.isDeletionMark = true;
         }
     }
 }