title: Parse REST Request in SOAPUI Mock Service
body: <p>I am trying to achieve a very simple goal in soapui
  I have created a mock rest service in soapui that I can return static content from if the last resource matches a file name. problem is:</p>
  
  <p>I use Spring RESTTemplate to make a REST call ala:
  <a href="http://www.sample.com/user/group/" rel="nofollow">http://www.sample.com/user/group/</a>{1}/status</p>
  
  <p>where {1} is the only variable (it will be a number like 1111 or 2323)</p>
  
  <p>In the OnRequest script section I should be able to write something simple that allows me to extract this resource from the full url and then craft a return of a static file of the same name ie:</p>
  
  <p>ref = value.at.specified.location.{1}.in.url</p>
  
  <p>return file(ref.xml)</p>
  
  <p>any help translating these 2 pseudo code lines to actual working code would be helpful</p>