Node geomNode = pipeFlow.getRecord().getGeomNode();
Node node = geomNode.getSingleRelationship(OSMRelation.GEOM, Direction.INCOMING).getStartNode();
TraversalDescription td = Traversal
.description()
.evaluator(new Evaluator() {
@Override
public Evaluation evaluate(Path path) {
if (path.length() > 0
&& !path.relationships().iterator().next().isType(OSMRelation.NEXT)
&& path.lastRelationship().isType(OSMRelation.NODE)) {