Changes to make compatible with neo4j gem v3.x