title: How to catch 404 (NotFoundException) without being depndant on a JAX-RS implemenation?
body: <p>Typically one uses <code>ExceptionMapper</code> to catch exceptions, log them, return a customized error messages.</p>
  
  <p>However while JAX-RS provides an <code>NotFoundException</code> in its api, the implementations (Jeresy, CXF,...) provide their own NotFoundException (such as <code>com.sun.jersey.api.NotFoundException</code>) which doesn't extends the JAX-RS one.</p>
  
  <p>Leaving us with the sole option of having in our code implementation specific imports.
  This makes it hard if one wants to switch implementations.</p>
  
  <p>Is there another way to do this, to avoid the dependency on a specific implementation?</p>