static boolean isZip(Path path) {
        if (!Files.isRegularFile(path)) {
            return false;
        }

        try (ZipFile ignored = new ZipFile(path.toFile())) {
            return true;
        } catch (IOException ignored) {
            // Probably not a JAR file.
            return false;
        }
    }
Returns the {@link Engine} of the specified Tomcat {@link Service}. If the {@link Service} has no
{@link Engine} set, a new {@link Engine} will be created and set.

<p>The return type of {@link Service#getContainer()} has been changed from {@link Container} to
{@link Engine} since 8.5. Calling it directly will cause {@link NoSuchMethodError}.
tomcat10/src/main/java/com/linecorp/armeria/server/tomcat/TomcatUtil.java