code: public Set<InstallLicense> getServerPackageFeatureLicense(File archive, boolean offlineOnly, Locale locale) throws InstallException {
          String aName = archive.getAbsolutePath().toLowerCase();
          ServerPackageAsset spa = null;
          if (ServerPackageZipAsset.validType(aName)) {
              spa = new ServerPackageZipAsset(archive, false);
          } else if (ServerPackageJarAsset.validType(aName)) {
              spa = new ServerPackageJarAsset(archive, false);
          } else {
              return new HashSet<InstallLicense>();
          }
  
          return getFeatureLicense(spa.getRequiredFeatures(), locale, null, null);
      }
docs: Gets the licenses for the specified archive file
  
  @param archive the archive file
  @param offlineOnly if features should be only retrieved locally
  @param locale Locale for the licenses
  @return A set of InstallLicesese for the features in the archive file
  @throws InstallException