private ResteasyUriInfo createResteasyUriInfo(URI requestUri, String contextPath) {
        final String uri = requestUri.toString();
        if (InitData.canBeCached(uri)) {
            final InitData initData;
            try {
                initData = uriInfoCache.get(requestUri.getRawPath(), () -> new InitData(uri, contextPath));
            } catch (ExecutionException e) {
                // this shall never happen
                throw new RuntimeException(e);
            }
            return new ResteasyUriInfo(uri, contextPath, initData);
        } else {
            return new ResteasyUriInfo(uri, contextPath);
        }
    }
This handler available to execute custom shutdown sequence.
resteasy/src/main/java/com/linecorp/armeria/server/resteasy/ResteasyService.java