public class NotFoundExceptionMapper implements ExceptionMapper<ResourceNotFoundException> {
@Override
public Response toResponse(ResourceNotFoundException e) {
String id = e.getMessage();
return Response.status(Response.Status.NOT_FOUND).entity(new ErrorWrapperResponse(
"The requested resource could not be found. "+e.getMessage(),
"The requested resource could not be found."
)).build();
}