public Sail getSail(SailImplConfig config)
throws StoreConfigException
{
if (config instanceof DatasetConfig) {
DatasetConfig dc = (DatasetConfig)config;
DatasetSail sail = new DatasetSail();
sail.setGraphs(dc.getGraphs());
sail.setClosed(dc.isClosed());
return sail;
}
throw new StoreConfigException("Invalid configuration class: " + config.getClass());
}