@Override
public Datastore<JsonFileStoreSession, JsonNodeMetadata, String, JsonRelationMetadata, String> createDatastore(CdoUnit cdoUnit) {
URI uri = cdoUnit.getUri();
if (!"file".equals(uri.getScheme())) {
throw new CdoException("Only file URIs are supported by this store.");
}
try {
return new JsonFileStore(uri.toURL().getPath());
} catch (MalformedURLException e) {
throw new CdoException("Cannot convert URI '" + uri.toString() + "' to URL.", e);
}
}