private boolean untar(File fileToUntar) throws FileNotFoundException, IOException {
        boolean fileUntarred = false;
        String untarLocation = fileToUntar.getAbsolutePath();
        TarArchiveInputStream tarStream = new TarArchiveInputStream(new FileInputStream(fileToUntar));
        BufferedReader bufferedTarReader = new BufferedReader(new InputStreamReader(tarStream));
        ArchiveEntry entry;
        while ((entry = tarStream.getNextEntry()) != null) {
            char[] cbuf = new char[1024];
            int count;
            FileWriter out = new FileWriter(new File(String.format("%s/%s", untarLocation, entry.getName())));
            while ((count = bufferedTarReader.read(cbuf, 0, 1024)) != -1) {
                out.write(cbuf, 0, count);
            }
            out.flush();
            out.close();
        }
        bufferedTarReader.close();
        tarStream.close();
        return fileUntarred;
    }