code: public static Archiver createArchiver(ArchiveFormat archiveFormat) {
          if (archiveFormat == ArchiveFormat.SEVEN_Z) {
              return new SevenZArchiver();
          } else if (archiveFormat == ArchiveFormat.ZIP) {
              return new ZipFileArchiver();
          }
          return new CommonsArchiver(archiveFormat);
      }
docs: Creates an Archiver for the given archive format.
  
  @param archiveFormat the archive format
  @return a new Archiver instance