private File findNextFile() throws SQLException, IOException {
        String logFullName = CdDao.findCurrentLogFileName();
        String curFileName = new File(logFullName).getName();
        File indexFile = findIndexLogfile();
        BufferedReader indexReader = new BufferedReader(new FileReader(indexFile));
        if(indexReader == null) {
            return null;
        }
        String line = null;
        while((line = indexReader.readLine()) != null) {
            if(line.contains(".\\")) {
                line = line.replace(".\\", "");
                if(curFileName.equals(line)) {
                    line = indexReader.readLine().replace(".\\", "");
                    break;
                }
            }
        }
        if("".equals(line)) {
            return null;
        }
        return new File(logRoot + "/" + line);
    }