archive = new ZipArchiveFile(localFile);
} else if (TAR_EXTENSTION.equals(extension)
|| GZ_EXTENSTION.equals(extension)
|| BZ2_EXTENSTION.equals(extension)) {
archive = new TarArchiveFile(localFile);
}
} catch (PharException e) {
throw new IOException(e.getMessage());
} catch (TarException e) {
throw new IOException(e.getMessage());