} catch (Exception e) { if (logger.isEnabledFor(Level.INFO)) { logger.info( "Aktualisierungsinformationen konnten nicht geladen werden. Server down?");
StringTokenizer token2 = new StringTokenizer(guiVersion, ".");  if(token1.countTokens() != 3 || token2.countTokens() != 3) { return;
                public void run() {                    if (logger.isEnabledFor(Level.DEBUG)) {                        logger.debug("VersionWorkerThread gestartet. " + this);                    }                    try {                    	ProxySettings proxy = ProxyManagerImpl.getInstance().getProxySettings();                        String downloadData = WebsiteContentLoader.                            getWebsiteContent(proxy, "http://www.tkl-soft.de", 80,                                              "/applejuice/version.txt");                        if (downloadData.length() > 0) {                            int pos1 = downloadData.indexOf("|");                            String aktuellsteVersion = downloadData.substring(0,                                pos1);                            StringTokenizer token1 = new StringTokenizer(                                aktuellsteVersion, ".");    						String guiVersion = AppleJuiceDialog.GUI_VERSION;    						if (guiVersion.indexOf('-') != -1){    							guiVersion = guiVersion.substring(0, guiVersion.indexOf('-'));    						}                            StringTokenizer token2 = new StringTokenizer(guiVersion, ".");                            if (token1.countTokens() != 3 ||                                token2.countTokens() != 3) {                                return;                            }                            String[] versionInternet = new String[3];                            String[] aktuelleVersion = new String[3];                            for (int i = 0; i < 3; i++) {                                versionInternet[i] = token1.nextToken();                                aktuelleVersion[i] = token2.nextToken();                            }                            int versionsInfoModus = OptionsManagerImpl.getInstance().                                getVersionsinfoModus();                            boolean showInfo = false;                            boolean versionUpdate = false;                            boolean importantUpdate = false;                            boolean cosmeticUpdate = false;                            if (Integer.parseInt(versionInternet[0]) >                                Integer.parseInt(aktuelleVersion[0])) {                                versionUpdate = true;                            }                            else if (Integer.parseInt(versionInternet[1]) >                                     Integer.parseInt(aktuelleVersion[1])) {                                importantUpdate = true;                            }                            else if (Integer.parseInt(versionInternet[2]) >                                     Integer.parseInt(aktuelleVersion[2])) {                                cosmeticUpdate = true;                            }                            if (versionsInfoModus == 2                                &&                                (cosmeticUpdate || importantUpdate || versionUpdate)) {                                showInfo = true;                            }                            else if (versionsInfoModus == 1                                     && (importantUpdate || versionUpdate)) {                                showInfo = true;                            }                            else if (versionsInfoModus == 0                                     && versionUpdate) {                                showInfo = true;                            }                            if (showInfo) {                                int pos2 = downloadData.lastIndexOf("|");                                String winLink = downloadData.substring(pos1 +                                    1, pos2);                                String sonstigeLink = downloadData.substring(                                    pos2 + 1);                                UpdateInformationDialog updateInformationDialog =                                    new UpdateInformationDialog(theApp,                                    aktuellsteVersion, winLink, sonstigeLink);                                updateInformationDialog.setVisible(true);                            }                        }                    }                    catch (Exception e) {                        if (logger.isEnabledFor(Level.INFO)) {                            logger.info(                                "Aktualisierungsinformationen konnten nicht geladen werden. Server down?");                        }                    }                    if (logger.isEnabledFor(Level.DEBUG)) {                        logger.debug("VersionWorkerThread beendet. " + this);                    }                }