class NodeOfflineExceptionMapper implements ExceptionMapper<NodeOfflineException> {

    @Override
    public Response toResponse(NodeOfflineException exception) {
        LOGGER.warn("{} is unavailable assuming disconnection",exception.getUri());
        discovery.onDisconnect(exception.getUri());
        return Response.status(Response.Status.GONE.getStatusCode(),exception.getMessage())
            .build();
    }

    public  NodeOfflineExceptionMapper();
    protected  NodeOfflineExceptionMapper(Discovery discovery);

}