throws StoreConfigException
{
if (configuration instanceof ContextAwareConfig) {
ContextAwareConfig config = (ContextAwareConfig)configuration;
ContextAwareRepository repo = new ContextAwareRepository();
repo.setIncludeInferred(config.isIncludeInferred());
repo.setMaxQueryTime(config.getMaxQueryTime());
repo.setQueryLanguage(config.getQueryLanguage());
repo.setReadContexts(config.getReadContexts());
repo.setAddContexts(config.getAddContexts());
repo.setRemoveContexts(config.getRemoveContexts());
repo.setArchiveContexts(config.getArchiveContexts());
repo.setQueryResultLimit(config.getQueryResultLimit());
return repo;
}
throw new StoreConfigException("Invalid configuration class: " + configuration.getClass());