urce.setLocation(location);</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">        swaggerResource.setSwaggerVersion(&quot;2.0&quot;);</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">        return swaggerResource;</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">    }</span><br></span><span class="token-line" style="color:#F8F8F2"><span class="token plain">}</span><br></span></code>