if (content.size() == 0) { return; }
    private void informDataUpdateListener(int type) {        try{            switch (type)            {                case DataUpdateListener.DOWNLOAD_CHANGED:                    {                        HashMap content = modifiedXML.getDownloads();                        if (content.size() == 0)                        {                            return;                        }                        Iterator it = downloadListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.                                                                                DOWNLOAD_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.UPLOAD_CHANGED:                    {                        HashMap content = modifiedXML.getUploads();                        if (content.size() == 0)                        {                            return;                        }                        Iterator it = uploadListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.                                                                                UPLOAD_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.SERVER_CHANGED:                    {                        HashMap content = modifiedXML.getServer();                        if (content.size() == 0)                        {                            return;                        }                        Iterator it = serverListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.                                                                                SERVER_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.SHARE_CHANGED:                    {                        HashMap content = shareXML.getShare();                        if (content.size() == 0)                        {                            return;                        }                        Iterator it = shareListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.                                                                                SHARE_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.NETINFO_CHANGED:                    {                        NetworkInfo content = modifiedXML.getNetworkInfo();                        Iterator it = networkInfoListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.                                                                                NETINFO_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.SPEED_CHANGED:                    {                        HashMap content = modifiedXML.getSpeeds();                        Iterator it = speedListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.SPEED_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.SEARCH_CHANGED:                    {                        HashMap content = modifiedXML.getSearchs();                        Iterator it = searchListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.SEARCH_CHANGED, content);                        }                        break;                    }                case DataUpdateListener.INFORMATION_CHANGED:                    {                        Information content = modifiedXML.getInformation();                        Iterator it = informationListener.iterator();                        while (it.hasNext())                        {                            ((DataUpdateListener) it.next()).fireContentChanged(DataUpdateListener.INFORMATION_CHANGED, content);                        }                        break;                    }                default:                    break;            }        }        catch (Exception e)        {            if (logger.isEnabledFor(Level.ERROR))                logger.error("Unbehandelte Exception", e);        }    }