title: Problems retrieving the correct values from DB from REST Web Service
body: <p>I Have the following XML if I do a get to List the content of the table:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
     &lt;competitions&gt; 
         &lt;competition&gt;
             &lt;competitionPK&gt; 
                 &lt;competitionName&gt;Test Thing&lt;/competitionName&gt; 
                 &lt;edition&gt;First Thing&lt;/edition&gt; 
             &lt;/competitionPK&gt; 
             &lt;description&gt;Test Thing ONE&lt;/description&gt;
         &lt;/competition&gt; 
         &lt;competition&gt; 
             &lt;competitionPK&gt; 
                 &lt;competitionName&gt;Test Thing 2&lt;/competitionName&gt; 
                 &lt;edition&gt;Second Thing&lt;/edition&gt; 
             &lt;/competitionPK&gt; 
             &lt;description&gt;Test Thing TWO&lt;/description&gt; 
         &lt;/competition&gt; 
     &lt;/competitions&gt;
  </code></pre>
  
  <p>This is URL that exposes the service:</p>
  
  <pre><code>http://localhost:8080/project/org.project.rest.application.config.competition/%7Bid%7D
  </code></pre>
  
  <p>How can I obtain the data of only the second competition = Test Thing 2?</p>
  
  <p>I've tried with...</p>
  
  <pre><code>http://localhost:8080/project/org.project.rest.application.config.competition/%STest%20Thing%2%B4Second%20Thing%7D
  </code></pre>
  
  <p>... which seems logical but it gives 204 error as no content was found.</p>
  
  <p><img src="https://i.stack.imgur.com/CA8UD.png" alt="enter image description here"></p>
  
  <p>Thanks</p>