RoutingTrie<V> build() {
        checkState(!routes.isEmpty(), "No routes added");

        final NodeBuilder<V> root = insertAndGetRoot(routes.get(0));
        for (int i = 1; i < routes.size(); i++) {
            final Entry<V> route = routes.get(i);
            addRoute(root, route);
        }
        return new RoutingTrie<>(root.build());
    }
Builds and returns {@link RoutingTrie} with given paths and values.
core/src/main/java/com/linecorp/armeria/server/RoutingTrieBuilder.java