4;Path("bar")
  public BarResource getBarResource() {...}
 }

 public class BarResource {
  &#064;GET
  public String getBar() {...}
 }
 </pre>

 <p>The values returned by this method based on request uri and where
 the method is called from are:</p>

 <table border="1">
 <tr>
 <th>Request</th>
 <th>Called from</th>
 <th>Value(s)</th>
 </tr>
 <tr>
 <td>GET /foo</td>
 <td>FooResource.getFoo</td>
 <td>foo</td>
 </tr>
 <tr>
 <td>GET /foo/bar</td>
 <td>FooResource.getBarResource</td>
 <td>foo/bar, foo</td>
 </t