* @throws EnMeExpcetion
*/
@Scope("singleton")
@Bean(name = "indexWriter", initMethod="openIndexWriter", destroyMethod="closeIndexWriter")
public IndexWriterManager indexWriterManager() throws EnMeExpcetion {
final IndexWriterManager searchAttachmentManager = new IndexWriterManager();
Assert.notNull(this.indexFSDirectory, "Index FSD Directory is null");
searchAttachmentManager.setDirectoryStore(this.indexFSDirectory);
return searchAttachmentManager;
}