File tftpDir = new File(getTftpRoot()); if (!tftpDir.exists()) { FileUtils.forceMkdir(tftpDir); } File iniFile = new File(tftpDir, getSerialNumber() + ".ini");
File iniFile = getIniFile();
    public void generateProfiles() {        Writer wtr = null;        try {            File tftpDir = new File(getTftpRoot());            if (!tftpDir.exists()) {                FileUtils.forceMkdir(tftpDir);            }            File iniFile = new File(tftpDir, getSerialNumber() + ".ini");            wtr = new FileWriter(iniFile);            generateProfiles(wtr);        } catch (IOException e) {            throw new RuntimeException(e);        } finally {            IOUtils.closeQuietly(wtr);        }    }