public HttpService buildSafeDecoratedService(
            Function<? super HttpService, ? extends HttpService> localDecorator) {
        // Apply decorators which are specified in the service class.
        HttpService decoratedService = decorator.apply(service);
        // Apply localDecorator passed in through method parameter
        decoratedService = decoratedService.decorate(localDecorator);
        return service.withExceptionHandler(decoratedService);
    }
Builds a safe decorated {@link HttpService} by wrapping the localDecorator with
exceptionHandlingDecorators.

@param localDecorator a decorator to decorate the service with.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotatedServiceElement.java