@Override
    public void serviceAdded(ServiceConfig cfg) throws Exception {
        if (paramNames != null) {
            final Set<String> params = cfg.route().paramNames();

            // Find out if old path and new path are compatible
            for (String param : paramNames) {
                if (!params.contains(param)) {
                    throw new IllegalArgumentException("pathParams: " + param + " (no matching param in " +
                                                       params + ')');
                }
            }
            // We don't need the paramNames anymore
            paramNames = null;
        }

        HttpService.super.serviceAdded(cfg);
    }
NB: For now we redirect all methods.
core/src/main/java/com/linecorp/armeria/server/RedirectService.java