code: public static Map<String, Object> get(File packageFile) throws IOException {
      ZipFile zipFile = null;
      try {
        zipFile = new ZipFile(packageFile);
        ZipArchiveEntry entry = zipFile.getEntry(ZIP_ENTRY_PROPERTIES);
        if (entry != null && !entry.isDirectory()) {
          Map<String, Object> props = getPackageProperties(zipFile, entry);
          return new TreeMap<>(transformPropertyTypes(props));
        }
        return Collections.emptyMap();
      }
      finally {
        IOUtils.closeQuietly(zipFile);
      }
    }
docs: Get properties of AEM package.
  @param packageFile AEM package file.
  @return Map with properties or empty map if none found.
  @throws IOException I/O exception