code: private static Collection<ZipEntry> checkEntries(ZipFile zip, String path, String extension)
      {
          final Collection<ZipEntry> entries = new ArrayList<>();
          final Enumeration<? extends ZipEntry> zipEntries = zip.entries();
          while (zipEntries.hasMoreElements())
          {
              final ZipEntry entry = zipEntries.nextElement();
              final String name = entry.getName();
              if (name.startsWith(path) && UtilFile.getExtension(name).equals(extension))
              {
                  entries.add(entry);
              }
          }
          return entries;
      }
docs: Check all entries existing in the ZIP considering the extension.
  
  @param zip The ZIP to check.
  @param path The path to check.
  @param extension The extension (without dot; eg: xml).
  @return The entries list.