code: public BaseLuceneStorage setIndexManager(IndexManager indexManager) {
          if (this.indexManager != null && myOwnIndexManager) {
              this.indexManager.close();
              myOwnIndexManager = false;
          }
          this.indexManager = indexManager;
          return this;
      }
docs: Setter for {@link #indexManager}.
  
  @param indexManager
  @return