if (firstUpdate){ firstUpdate = false; Map downloads = ApplejuiceFassade.getInstance().getDownloadsSnapshot(); ((DownloadRootNode) downloadPanel.getDownloadModel().getRoot()).setDownloadMap(downloads); DownloadDirectoryNode.setDownloads(downloads); }
	private synchronized void downloadPropertyChanged(DataPropertyChangeEvent evt){	    if (firstUpdate){	        firstUpdate = false;			Map downloads = ApplejuiceFassade.getInstance().getDownloadsSnapshot();			((DownloadRootNode) downloadPanel.getDownloadModel().getRoot()).setDownloadMap(downloads);			DownloadDirectoryNode.setDownloads(downloads);	    }		boolean tmpSort = false;		if (evt.isEventContainer()){			DataPropertyChangeEvent[] events = evt.getNestedEvents();			for (int i = 0; i<events.length; i++){				if (handleDownloadDataPropertyChangeEvent(						(DownloadDataPropertyChangeEvent)events[i])){					tmpSort = true;				}			}		}		else{			if (handleDownloadDataPropertyChangeEvent((DownloadDataPropertyChangeEvent)evt)){				tmpSort = true;			}		}		final boolean sort = tmpSort;        SwingUtilities.invokeLater(new Runnable() {            public void run() {            	if (sort){	            	downloadPanel.getDownloadModel().sortNextRefresh(sort);	            	downloadPanel.getDownloadTable().updateUI();	            	downloadPanel.getDownloadModel().sortNextRefresh(false);            	}            	else{	            	downloadPanel.getDownloadTable().updateUI();            	}            }        });	}