}
private void getIndexWriterInstance()
throws ResourceInitializationException {
UimaContext uimaContext = getContext();
IndexWriterProvider indexWriterProvider;
try {
indexWriterProvider = (IndexWriterProvider) uimaContext
.getResourceObject(RESOURCE_INDEX_WRITER_PROVIDER);
} catch (ResourceAccessException e) {
throw new ResourceInitializationException(e);
}
indexWriter = indexWriterProvider.getIndexWriter();
}