if (couchdb != null) {
return new CouchDBDataStore(couchdb.get("url").asText(), couchdb.get("dbName").asText());
}
final JsonNode jpa = dataStore.get("jpa");
if (jpa != null) {
return new JpaDataStore(jpa.get("persistenceUnit").asText());
}
throw new IllegalStateException("datastore must be specified");
}