class TokenEndpointResource extends ServerResource {

    @Override
    protected void doCatch(Throwable throwable) {
        exceptionHandler.handle(throwable, getResponse());
    }

    @Inject public  TokenEndpointResource(OAuth2RequestFactory<?, Request> requestFactory, AccessTokenService accessTokenService,
            ExceptionHandler exceptionHandler, Set<TokenRequestHook> hooks,
            JacksonRepresentationFactory jacksonRepresentationFactory);

}