Moved API level usage of internal class GraphDatabaseAPI into internals.
Merge pull request #1808 from jakewins/jmx-remove-deprecated

Moved API level usage of internal class GraphDatabaseAPI into internals.