{
throw new PersistenceUnitConfigurationException(
"For Neo4J, it's mandatory to specify kundera.datastore.file.path property in persistence.xml");
}
Neo4JSchemaMetadata nsmd = Neo4JPropertyReader.nsmd;
ClientProperties cp = nsmd != null ? nsmd.getClientProperties() : null;
GraphDatabaseService graphDb = (GraphDatabaseService) getConnectionPoolOrConnection();
if (cp != null && graphDb == null)
{
DataStore dataStore = nsmd != null ? nsmd.getDataStore() : null;
Properties properties = dataStore != null && dataStore.getConnection() != null ? dataStore.getConnection()
.getProperties() : null;
if (properties != null)