static String toString(
            @SuppressWarnings("UnnecessaryFullyQualifiedName") org.apache.catalina.Server server) {

        requireNonNull(server, "server");

        final Service[] services = server.findServices();
        final String serviceName;
        if (services.length == 0) {
            serviceName = "<unknown>";
        } else {
            serviceName = services[0].getName();
        }

        final StringBuilder buf = new StringBuilder(128);

        buf.append("(serviceName: ");
        buf.append(serviceName);
        if (TomcatVersion.major() >= 8) {
            buf.append(", catalinaBase: ");
            buf.append(server.getCatalinaBase());
        }
        buf.append(')');

        return buf.toString();
    }
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