if (logger.isEnabledFor(Level.ERROR)) { logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex); }
logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex);
    private final void pauseAllDownloads() {        try {            Map<String, Download> downloads = applejuiceFassade.getDownloadsSnapshot();            synchronized (downloads) {                List<Download> dos = new Vector<Download>();                for (Download curDownload : downloads.values()) {                    dos.add(curDownload);                }                applejuiceFassade.pauseDownload(dos);                applejuiceFassade.setPowerDownload(dos, new Integer(0));            }        }        catch (Exception ex) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(ApplejuiceFassade.ERROR_MESSAGE, ex);            }        }    }