I noticed that UriBuilder has a #toTemplate method. But it doesn't seem to
handle query parameters. Is this a bug? Is there any way to specify query
parameters as a template instead of as a URI with the query parameters
resolved?
For example, I would expect the query parameters surname and maxresults to
be templated as
"/users{?surname,maxresults}"