JAX-RS CXF: How to get Exception from ResponseExceptionMapper
===

I have a provider at server to marshall MyException as follows

    Response.ok(myExceptionObj, MediaType.APPLICATION_JSON).status(Response.Status.BAD_REQUEST).build();

I would like to know how I can implement ResponseExceptionMapper of CXF so that I can get the exception object back. 