docs: @Pure
  	<CT extends RoadConnection> CT getEndPoint(Class<CT> connectionClass) {
  		final StandardRoadConnection connection = this.lastConnection;
  		if (connection == null) {
  			return null;
  		}
  		if (connectionClass.isAssignableFrom(StandardRoadConnection.class)) {
  			return connectionClass.cast(connection);
  		}
  		if (connectionClass.isAssignableFrom(RoadConnectionWithArrivalSegment.class)) {
  			return connectionClass.cast(new RoadConnectionWithArrivalSegment(connection, this, false));
  		}
  		throw new IllegalArgumentException("unsupported RoadConnection class");  //$NON-NLS-1$
  	}