public synchronized void initialize() throws RepositoryException {
if (repository != null && repository.isInitialized()) {
throw new IllegalStateException("repository already initialized");
}
log.debug("initializing kiwi-store: {}", kiwi);
KiWiStore store = new KiWiStore(kiwi.getName(), kiwi.getJdbcUrl(), kiwi.getDbUser(), kiwi.getDbPassword(), kiwi.getDialect(), context, context);
final Sail sail;
if (isVersioningEnabled || isReasoningEnabled) {
TransactionalSail tSail = new KiWiTransactionalSail(store);
if (isVersioningEnabled) {