Date fromDate = DATE_FORMAT.parse(from);
Date untilDate = DATE_FORMAT.parse(until);
DatabaseUtil.getSingleton().beginTransaction(new CredentialsWrapper(this.username, this.password));
FolderDao folderDao = FolderDao.createInstance();
List folders = folderDao.list();
for (Iterator it = folders.iterator(); it.hasNext(); ) {
Folder currentFolder = (Folder) it.next();
Date currentDate = currentFolder.getDatestamp().getTime();
boolean validFromDate = fromDate == null || currentDate.compareTo(fromDate) >= 0;