title: is it possible to call one jax-rs method from another?
body: <p>suppose i have some jax-rs resource class:</p>
  
  <pre><code>@Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.APPLICATION_JSON)
  public class ResourceA {
     @GET
     public Something get(@Context UriInfo uriInfo) {
        if (...) {
           //how to get to ResourceB ?
        }
     }
  }
  </code></pre>
  
  <p>and i want to conditionally redirect the call to some other jax-rs resource:</p>
  
  <pre><code>public class ResourceB {
     @GET
     @Path("{identifier}")
     public Other get(@PathParam("identifier")String someArg) {
     }
  }
  </code></pre>
  
  <p>how do i do this? 
  note that i dont want this to be visible to the client (so no http redirects) and generally the resource methods i want to redirect to dont share the same signature (they may have path params etc as in the example i gave).</p>
  
  <p>im running jersey 2.6 under apache tomcat (its a spring app, if thats any help)</p>
  
  <p><strong>EDIT</strong> - im looking for a jax-rs equivalent of <a href="http://docs.oracle.com/javaee/5/api/javax/servlet/RequestDispatcher.html#forward%28javax.servlet.ServletRequest,%20javax.servlet.ServletResponse%29" rel="noreferrer">servlet forward</a>. i dont want to do an extra http hop or worry abour instantiating resource classes myself</p>