Source:
<code>public URI toURI() { this.validateRequest(); final Map<String, String> queryParams = new HashMap<>(); if (this.format != null) { queryParams.put("format", this.format.toString()); } if (this.dataClass != null) { queryParams.put("class", String.valueOf(this.dataClass)); } if (this.interval != null) { queryParams.put("referenceName", this.interval.getContig()); <START> if (!(this.interval.getContig().equals("*"))) { <END> queryParams.put("start", String.valueOf(this.interval.getStart() - 1)); if (this.interval.getEnd() != Integer.MAX_VALUE && this.interval.getEnd() != -1) { queryParams.put("end", String.valueOf(this.interval.getEnd())); } } } if (!this.fields.isEmpty()) { queryParams.put( "fields", this.fields.stream().map(HtsgetRequestField::toString).collect(Collectors.joining(","))); } if (!this.tags.isEmpty()) { queryParams.put("tags", String.join(",", this.tags)); } if (!this.notags.isEmpty()) { queryParams.put("notags", String.join(",", this.notags)); } try { final String queryString = queryParams.entrySet().stream() .map(e -> e.getKey() + "=" + e.getValue()) .collect(Collectors.joining("&")); final String updatedQuery = this.endpoint.getQuery() == null ? (queryString.isEmpty() ? null : queryString) : this.endpoint.getQuery() + "&" + queryString; return new URI(this.endpoint.getScheme(), this.endpoint.getUserInfo(), this.endpoint.getHost(), this.endpoint.getPort(), this.endpoint.getPath(), updatedQuery, this.endpoint.getFragment()); } catch (final URISyntaxException e) { throw new IllegalArgumentException("Could not create URI for request"); } }</code><technical_language>This reference SamRecord.NO_ALIGNMENT_REFERENCE_NAME clear * is</technical_language>

Target:
public URI toURI() { this.validateRequest(); final Map<String, String> queryParams = new HashMap<>(); if (this.format != null) { queryParams.put("format", this.format.toString()); } if (this.dataClass != null) { queryParams.put("class", String.valueOf(this.dataClass)); } if (this.interval != null && this.interval.getContig() != null) { queryParams.put("referenceName", this.interval.getContig()); if (!(this.interval.getContig().equals(SAMRecord.NO_ALIGNMENT_REFERENCE_NAME))) { queryParams.put("start", String.valueOf(this.interval.getStart() - 1)); if (this.interval.getEnd() != Integer.MAX_VALUE && this.interval.getEnd() != -1) { queryParams.put("end", String.valueOf(this.interval.getEnd())); } } } if (!this.fields.isEmpty()) { queryParams.put( "fields", this.fields.stream().map(HtsgetRequestField::toString).collect(Collectors.joining(","))); } if (!this.tags.isEmpty()) { queryParams.put("tags", String.join(",", this.tags)); } if (!this.notags.isEmpty()) { queryParams.put("notags", String.join(",", this.notags)); } try { final String queryString = queryParams.entrySet().stream() .map(e -> e.getKey() + "=" + e.getValue()) .collect(Collectors.joining("&")); final String updatedQuery = this.endpoint.getQuery() == null ? (queryString.isEmpty() ? null : queryString) : this.endpoint.getQuery() + "&" + queryString; return new URI(this.endpoint.getScheme(), this.endpoint.getUserInfo(), this.endpoint.getHost(), this.endpoint.getPort(), this.endpoint.getPath(), updatedQuery, this.endpoint.getFragment()); } catch (final URISyntaxException e) { throw new IllegalArgumentException("Could not create URI for request", e); } }