title: Get URI VAR from SynapseXPath Variable in WSO2 ESB API
body: <p>I want to get a URI VAR value from request to call correct case in switch in WSO2 ESB API resource, like this:</p>
  
  <pre><code>&lt;api name="apk" context="/apk"&gt;&lt;resource methods="GET" uri-
  template="/apk/{appName}"&gt;&lt;inSequence&gt;&lt;header name="App" 
  scope="transport" action="remove"/&gt;&lt;switch source="get-
  property('uri.var.appName')"&gt;&lt;case regex="BEBE"&gt;&lt;send&gt;&lt;endpoint&gt;&lt;http 
  method="GET" uri-template="http://localhost/apk/Bebe.apk&gt;&lt;/http&gt;
  &lt;/endpoint&gt;&lt;/send&gt;&lt;/case&gt;&lt;case regex="CITAS"&gt;&lt;send&gt;&lt;endpoint&gt;&lt;http 
  method="GET" uri-template="http://localhost/apk/Citas.apk&gt;&lt;/http&gt;
  &lt;/endpoint&gt;&lt;/send&gt;&lt;/case&gt;&lt;/switch&gt;&lt;/inSequence&gt;&lt;/resource&gt;&lt;/api&gt;
  </code></pre>
  
  <p>In switch, <code>source="get-property('uri.var.appName')"</code> it's not correct.</p>
  
  <p>Can I get this value using <code>$url</code> SynapseXpath valiables like <code>$url</code>?</p>