code: public static Node getNextSingleNode(final Node user,
  			RelationshipType relationshipType) {
  		// find an outgoing relation of the type specified
  		Relationship rel = null;
  		try {
  			rel = user.getSingleRelationship(relationshipType,
  					Direction.OUTGOING);
  		} catch (final NonWritableChannelException e) {
  			// TODO: why is this here? Bug for read-only databases in previous
  			// version?
  		}
  
  		return (rel == null) ? (null) : (rel.getEndNode());
  	}
docs: find an outgoing relation from the user passed of the specified type
  
  @param user
  source user node
  @param relType
  relationship type of the relation being searched
  @return node targeted by the relation<br>
  null - if there is no relation of the type specified