packBitmaps();
    public void generateProfiles() {        String outputfile = getPhoneFilename();        String outputTxtfile = outputfile + ".txt";        FileWriter wtr = null;        try {            wtr = new FileWriter(outputTxtfile);            generateProfile(wtr);        } catch (IOException e) {            throw new RuntimeException(e);        } finally {            IOUtils.closeQuietly(wtr);        }                requireFile(getCfgfmtUtility());        requireFile(getPtagDat());                try {            String[] cmd = {                 getCfgfmtUtility(),                 "-t" + getPtagDat(),                 outputTxtfile,                 outputfile            };            Process p = Runtime.getRuntime().exec(cmd);            int errCode = p.waitFor();            if (errCode != 0) {                String msg = "Cisco profile conversion utility failed status code:" + errCode;                 StringWriter err = new StringWriter();                                err.write(msg.toCharArray());                CopyUtils.copy(p.getErrorStream(), err);                throw new RuntimeException(err.toString());            }        } catch (IOException e) {            throw new RuntimeException(e);                    } catch (InterruptedException e) {            throw new RuntimeException(e);        }                }