public GraphObject getGraphObject ( final String id , final String nodeId ) { if ( isValidUuid ( id ) ) { final AbstractNode node = getNode ( id ) ; if ( node != null ) { return node ; } else { if ( nodeId == null ) { logger . warn ( "Relationship access by UUID is deprecated and not supported by Neo4j, this can take a very long time." ) ; } final AbstractRelationship rel = getRelationship ( id , nodeId ) ; if ( rel != null ) { return rel ; } } } else { logger . warn ( "Invalid UUID used for getGraphObject: {} is not a valid UUID." , id ) ; } return null ; }
Returns the graph object with the given id .