title: Delegate to a different Jersey resource class
body: <p>I have a resource exists in an internal jar dependency (hence, I cannot change it's code):</p>
  
  <pre><code>@Path("doStuff")
  public class ExternalResource {
      @GET
      public Response getSomething() {
      }
  </code></pre>
  
  <p>I need to create my own resource with a prefix path that is doing some checks and if they pass I want to delegate the handling to this external resource.</p>
  
  <pre><code>@Path("api/check")
  public class MyResource {
      @GET
      public Response check() {
      }
  </code></pre>
  
  <p>Eventually, when someone calls GET /api/check/doStuff
  I want my checks to be made and delegate the handling to the external resource.</p>
  
  <p>How can i do something like that in Jersey?</p>