@Named("eventhub.directory") String eventIndexDirectory) throws IOException {
//noinspection ResultOfMethodCallIgnored
new File(eventIndexDirectory).mkdirs();
Options options = new Options();
options.createIfMissing(true);
return new PropertiesIndex(new DB(
JniDBFactory.factory.open(new File(eventIndexDirectory + "/properties_index.db"), options)));
}