Also a traversal API returns a Path including the segments and the end node (i.e. entity). How to map a Path?