adopted to neo4j-2.0