String[] urlsPaths = url.split("/");
String folderId = urlsPaths[urlsPaths.length - 2];
String fileName = urlsPaths[urlsPaths.length - 1];
Folder folder = FolderDao.createInstance().retrieve(folderId);
List files = folder.getStoredFiles();
StoredFile fileTodownload = null;
for (Iterator it = files.iterator(); it.hasNext(); ) {
StoredFile currentFile = (StoredFile) it.next();
if (currentFile.getName().equals(fileName)) {
fileTodownload = currentFile;