@After
 public void tearDownStore() throws Exception {
   // TODO, not really nice
   FulltextIndex fulltextIndex = ((RdfStoreImpl) this.store).getFulltextIndex();
   if (fulltextIndex != null) {
     fulltextIndex.clear();
   }
   this.store.shutDown();
 }
  @Override
  protected void restartTx() {
    try {
      // Temporary solution
      int txId = graphDbUtil().getTransactionManager().getTransaction().hashCode();
      super.restartTx();

      FulltextIndex fulltextIndex = ((RdfStoreImpl) store).getFulltextIndex();
      if (fulltextIndex != null) {
        fulltextIndex.end(txId, true);
      }
    } catch (SystemException e) {
      throw new RuntimeException(e);
    }
  }