PartListDO partList;
PartListDO partList = null;
    public void setDownloadDO(DownloadDO downloadDO) {        try {            if (downloadDO == null) {                if (partListWorkerThread != null){                    partListWorkerThread.interrupt();                    partListWorkerThread = null;                }                actualDLDateiName.setText("");                actualDlOverviewTable.setPartList(null);            }            else if (downloadDO.getStatus() != DownloadDO.FERTIGSTELLEN &&                     downloadDO.getStatus() != DownloadDO.FERTIG) {                final DownloadDO tempDO = downloadDO;                if (partListWorkerThread != null){                    partListWorkerThread.interrupt();                }                partListWorkerThread = new Thread() {                    public void run() {                        actualDLDateiName.setText(" " + tempDO.getFilename() +                                                  " (" +                                                  tempDO.getTemporaryFileNumber() +                                                  ".data)");                        actualDlOverviewTable.setPartList(null);                        PartListDO partList;                        while (!isInterrupted()) {                            partList = ApplejuiceFassade.getInstance().                                getPartList(tempDO);                            if (isInterrupted()){                                break;                            }                            if (partList == null) {                                interrupt();                                actualDLDateiName.setText("");                                actualDlOverviewTable.setPartList(null);                            }                            else {                                actualDlOverviewTable.setPartList(partList);                                try {                                    sleep(2000);                                }                                catch (InterruptedException iE) {                                    interrupt();                                }                            }                        }                    }                };                partListWorkerThread.start();            }        }        catch (Exception e) {            if (partListWorkerThread != null){                partListWorkerThread.interrupt();                partListWorkerThread = null;            }            actualDLDateiName.setText("");            actualDlOverviewTable.setPartList(null);            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(ApplejuiceFassade.ERROR_MESSAGE, e);            }        }    }