er.build &#123;
    base = 'http://grails.org'
    path = &#91;'doc', '2.1.1', 'guide', 'introduction.html'&#93;
    fragment = 'coreFeatures'
&#125;</pre></div><p class="paragraph"/>Similarly, the URI can be built gradually:
<div class="code"><pre>// Produces <span class="java&#45;quote">"http://grails.org/doc/2.1.1/guide/introduction.html&#35;coreFeatures"</span>
UriBuilder uriBuilder = <span class="java&#45;keyword">new</span> UriBuilder()
uriBuilder.base = 'http://grails.org'
uriBuilder.path = &#91;'doc