try {
KiWiStore store = new KiWiStore("test",jdbcUrl,jdbcUser,jdbcPass,dialect, "http://localhost/context/default", "http://localhost/context/inferred");
final Repository repository = new SailRepository(store);
repository.initialize();
LDCachingKiWiBackend backend = new LDCachingKiWiBackend(repository, CACHE_CONTEXT) {
/**
* Shutdown the backend and free all runtime resources.
*/
@Override
public void shutdown() {
try {
persistence.dropDatabase();
store.getPersistence().dropDatabase();
super.shutdown();
repository.shutDown();
} catch (Exception e) { }
}
};
backend.initialize();
return backend;
} catch (RepositoryException e) {
throw new AssertionError(e);