anchor.diff:  [source,java,indent=0,subs="verbatim,quotes",role="primary"]
   .Java
   ----
  -	// Re-uses host, port, context path, and Servlet prefix...
  -
  -	ServletUriComponentsBuilder ucb = ServletUriComponentsBuilder.fromServletMapping(request)
  -			.path("/accounts").build()
  -----
  -[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  -.Kotlin
  -----
  -	// Re-uses host, port, context path, and Servlet prefix...
  -
  -	val ucb = ServletUriComponentsBuilder.fromServletMapping(request)
  -			.path("/accounts").build()
  +	// Re-uses host, port, scheme, context path, and Servlet prefix...
  +
  +	URI uri = ServletUriComponentsBuilder.fromServletMapping(request)
  +			.path("/accounts")
  +			.build()
  +			.toUri();
  +----
  +[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  +.Kotlin
  +----
  +	// Re-uses host, port, scheme, context path, and Servlet prefix...
  +
  +	val uri = ServletUriComponentsBuilder.fromServletMapping(request)
  +			.path("/accounts")
  +			.build()
  +			.toUri()
   ----
   
   NOTE: As of 5.1, `ServletUriComponentsBuilder` ignores information from the `Forwarded` and
  
positive.code: 
  	// Re-uses host, scheme, port, path and query string...
  
  	val ucb = ServletUriComponentsBuilder.fromRequest(request)
  			.replaceQueryParam("accountId", "{id}").build()
  			.expand("123")
  			.encode()
  ----
  
  You can create URIs relative to the context path, as the following example shows:
  
negative.code: [source,java,indent=0,subs="verbatim,quotes",role="primary"]
  .Java
  ----
  	// Re-uses host, port, scheme and context path...
  
  	URI uri = ServletUriComponentsBuilder.fromContextPath(request)
  			.path("/accounts")
  			.build()
  			.toUri();
  ----
  [source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
  .Kotlin
  ----
  	// Re-uses host, port, scheme and context path...
  
  	val uri = ServletUriComponentsBuilder.fromContextPath(request)
  			.path("/accounts")
  			.build()
  			.toUri()
  ----
  
  You can create URIs relative to a Servlet (for example, `/main/{asterisk}`),
  