private static String normalizeJarRoot(@Nullable String jarRoot) {
        if (jarRoot == null || jarRoot.isEmpty() || "/".equals(jarRoot)) {
            return "/";
        }

        if (!jarRoot.startsWith("/")) {
            jarRoot = '/' + jarRoot;
        }

        if (jarRoot.endsWith("/")) {
            jarRoot = jarRoot.substring(0, jarRoot.length() - 1);
        }

        return jarRoot;
    }
Creates a new {@link TomcatServiceBuilder} with the web application at the specified document base,
which can be a directory or a JAR/WAR file.
tomcat10/src/main/java/com/linecorp/armeria/server/tomcat/TomcatService.java