List<LabelValueBean> xmlList = new ArrayList<LabelValueBean>();
    private List<List> getListOfExercisesList(FormFile xmlZipFile) {        List<List> allXmlList = new ArrayList<List>();        List<LabelValueBean> xmlList = new ArrayList<LabelValueBean>();        try {            if (xmlZipFile.getContentType().equals("application/x-zip-compressed")                    || xmlZipFile.getContentType().equals("application/zip")) {                ZipInputStream zipFile = new ZipInputStream(xmlZipFile.getInputStream());                for (ZipEntry entry = zipFile.getNextEntry(); entry != null; entry = zipFile                        .getNextEntry()) {                    if (entry.isDirectory()) {                        // Se for uma directoria  um novo exercicio (nova lista                        // de exercicios)                        if (xmlList != null && xmlList.size() != 0) {                            allXmlList.add(xmlList);                        }                        xmlList = new ArrayList<LabelValueBean>();                    }                    final StringBuilder stringBuilder = new StringBuilder();                    final byte[] b = new byte[1000];                    for (int readed = 0; (readed = zipFile.read(b)) > -1; stringBuilder                            .append(new String(b, 0, readed, "ISO-8859-1"))) {                        // nothing to do :o)                    }                    if (stringBuilder.length() <= FILE_SIZE_LIMIT) {                        xmlList.add(new LabelValueBean(entry.getName(), stringBuilder.toString()));                    } else {                        xmlList.add(new LabelValueBean(entry.getName(), null));                    }                }                zipFile.close();            } else {                //  1 exercicio com 1 variao (1 xml)                if (xmlZipFile.getContentType().equals("text/xml")                        || xmlZipFile.getContentType().equals("application/xml")) {                    if (xmlZipFile.getFileSize() <= FILE_SIZE_LIMIT) {                        xmlList.add(new LabelValueBean(xmlZipFile.getFileName(), new String(xmlZipFile                                .getFileData(), "ISO-8859-1")));                    } else {                        xmlList.add(new LabelValueBean(xmlZipFile.getFileName(), null));                    }                }            }        } catch (Exception e) {            return null;        }        if (xmlList != null && xmlList.size() != 0) {            allXmlList.add(xmlList);        }        return allXmlList;    }