public void inspectWar(String path) throws IOException {
        inspectJar(path);
        File war = new File(path);
        JarFile warFile = new JarFile(path);

        File extractedDir = war.isFile() ? Extractor.extract(warFile) : war;
        Enumeration<JarEntry> jarEntries = warFile.entries();

        while (jarEntries.hasMoreElements()) {

            JarEntry jarEntry = jarEntries.nextElement();
            String entryName = jarEntry.getName();
            if (entryName.endsWith(".jar")) {
                File subJarFile = new File(extractedDir.getCanonicalPath(), entryName);
                inspectJar(subJarFile.getAbsolutePath());
            }

        }
    }