serverDO.setConnected(true); verbindungsStatus = Information.VERBUNDEN;
if (serverDO != null){ serverDO.setConnected(true); connectedWithServerId = netInfo.getConnectedWithServerId(); information.setServer(serverDO); information.setVerbindungsStatus(verbindungsStatus); information.setExterneIP(netInfo.getExterneIP()); verbindungsStatus = Information.VERBUNDEN; }
    private void parseRest(){        int verbindungsStatus = Information.NICHT_VERBUNDEN;        ServerDO serverDO = null;        if (tryConnectToServer != netInfo.getTryConnectToServer()) {            if (tryConnectToServer != -1){                Object alterServer = serverMap.get(Integer.toString(                    tryConnectToServer));                if (alterServer != null) {                    ( (ServerDO) alterServer).setTryConnect(false);                }                information.setServer(null);            }            if (netInfo.getTryConnectToServer() != -1) {                serverDO = (ServerDO) serverMap.get(Integer.                    toString(netInfo.getTryConnectToServer()));                serverDO.setTryConnect(true);                verbindungsStatus = Information.VERSUCHE_ZU_VERBINDEN;            }            tryConnectToServer = netInfo.getTryConnectToServer();            information.setServer(serverDO);            information.setVerbindungsStatus(verbindungsStatus);            information.setExterneIP(netInfo.getExterneIP());        }        if (connectedWithServerId != netInfo.getConnectedWithServerId() ){            if (connectedWithServerId != -1){                Object alterServer = serverMap.get(Integer.toString(                    connectedWithServerId));                if (alterServer != null) {                    ( (ServerDO) alterServer).setConnected(false);                }                information.setServer(null);            }            if (netInfo.getConnectedWithServerId() != -1) {                serverDO = (ServerDO) serverMap.get(Integer.toString(                    netInfo.getConnectedWithServerId()));                serverDO.setConnected(true);                verbindungsStatus = Information.VERBUNDEN;            }            connectedWithServerId = netInfo.getConnectedWithServerId();            information.setServer(serverDO);            information.setVerbindungsStatus(verbindungsStatus);            information.setExterneIP(netInfo.getExterneIP());        }        Search aSearch;        SearchEntry searchEntry;        if (searchEntriesToDo.size()>0){            Iterator it = searchEntriesToDo.iterator();            while(it.hasNext()){                searchEntry = (SearchEntry)it.next();                if (searchMap.containsKey(Integer.toString(searchEntry.getSearchId()))) {                    aSearch = (Search) searchMap.get(Integer.toString(searchEntry.getSearchId()));                    aSearch.addSearchEntry(searchEntry);                }            }            searchEntriesToDo.clear();        }    }