return toBuilder( startPath ).build( toBuilder( endPath ) );
}
private Builder toBuilder( Path path )
{
Builder builder = new Builder( path.startNode() );
for ( Relationship rel : path.relationships() )
{
builder = builder.push( rel );
}
return builder;
}