code: void setEndPoint(StandardRoadConnection desiredConnection) {
  		final StandardRoadConnection oldPoint = getEndPoint(StandardRoadConnection.class);
  		if (oldPoint != null) {
  			oldPoint.removeConnectedSegment(this, false);
  		}
  		this.lastConnection = desiredConnection;
  		if (desiredConnection != null) {
  			final Point2d pts = desiredConnection.getPoint();
  			if (pts != null) {
  				setPointAt(-1, pts, true);
  			}
  			desiredConnection.addConnectedSegment(this, false);
  		}
  	}
docs: Move the end point of a road segment.
  
  <p>This function forces the end point of the given
  segment to correspond to the specified connection point
  even if the original end point was not near the connection
  point.
  
  @param desiredConnection the connection.