if (logger.isEnabledFor(Level.ERROR)) { logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex); }
logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex);
    public final void run() {        try {            if (initAction()) {                while (!isInterrupted()) {                    if (!paused) {                        doAction();                        sleep(getSleeptime());                    }                    sleep(1000);                }            }        }        catch (InterruptedException iE) {            if (shouldPause){                pauseAllDownloads();            }            interrupt();        }        catch (Exception ex) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex);            }        }        if (parentToInformEnde != null){            parentToInformEnde.autoPwdlFinished();            parentToInformEnde = null;        }        if (threads != null){            threads.clear();        }        logger = null;    }