// create a subclass to pin it to Throwable
register(new LoggingExceptionMapper<Throwable>() {
});
register(new ConstraintViolationExceptionMapper());
register(new JsonProcessingExceptionMapper());
register(new EarlyEofExceptionMapper());
register(new ComponentLoggingListener(this));
}
register(new InstrumentedResourceMethodApplicationListener(metricRegistry));
register(CacheControlledResponseFeature.class);
register(OptionalMessageBodyWriter.class);