title: Get ServletContext in JAX-RS resource
body: <p>I'm playing around with JAX-RS, deploying on Tomcat. It's basically:</p>
  
  <pre><code>@Path("/hello")
  @Produces({"text/plain"})
  public class Hellohandler {
  
      @GET
      public String hello() {
          return "Hello World";
      }
  
  }
  </code></pre>
  
  <p>Is there any way I can get hold of the <code>ServletContext</code> within my JAX-RS resource?</p>