@Riduidel I'm finally starting to understand this pull request.  I think that casting to the GraphDatabaseAPI is the correct call...better to go against the interface than the concrete class.  

@okram I don't know the history here on Neo4jGraph...GraphDatabaseAPI is largely deprecated:

http://api.neo4j.org/current/org/neo4j/kernel/GraphDatabaseAPI.html

But those were the methods we were using on the InternalAbstractGraphDatabase we were casting to before so using the deprecated methods on GraphDatabaseAPI is not new and obviously works.  I assume we just do that to maintain compatibility with older neo4j versions.  Of course, I don't think we to to do that consistently:

@Riduidel Right now you throw exceptions or simply log that the Neo4j instance isn't of type GraphDatabaseAPI.  Any reason we don't just try to implement in the non-deprecated methods instead?