@Override public Response toResponse(final TombstoneException e) { debugException(this, e, LOGGER); final Response.ResponseBuilder response = status(GONE) .entity(e.getMessage()); if (e.getURI() != null) { response.link(e.getURI(), "hasTombstone"); } return response.type(TEXT_PLAIN_TYPE).build(); } }