logger.addAppender(new ConsoleAppender(new SimpleLayout()));
DownloadTimeCounter lastDownload = LastDownloadDateManager.getLastDownloadDate("lastDownloadDate.dat");
UpdatesIterator iterator = new UpdatesIterator(lastDownload, 3);
while(iterator.hasNext()){
DownloadTimeCounter cntr = iterator.next();
//Since next returns null, if now new updates are available, then we should not go any further,
//and just wait for mor updates
if(cntr == null)
continue;