store = new EmbeddedGraphStore(directory.getAbsolutePath());
if (reset) {
// reset the store if the current project is the base project
// (i.e. where the rules are located).
store.start(Collections.<Class<?>> emptyList());
store.reset();
store.stop();
}
stores.put(directory, store);
}
return store;