connectionSettings.setOldMD5Password(passwort);
if (passwort.length()==0){ connectionSettings.setOldPassword(""); } else{ connectionSettings.setOldMD5Password(passwort); }
    public ConnectionSettings getRemoteSettings() {        try {            if (connectionSettings == null){                connectionSettings = new ConnectionSettings();            }            String host = "localhost";            String passwort = "";            int xmlPort = 9851;            host = getFirstAttrbuteByTagName(new String[] {"options", "remote",                                             "host"});            passwort = getFirstAttrbuteByTagName(new String[] {"options",                                                 "remote", "passwort"});            xmlPort = Integer.parseInt(getFirstAttrbuteByTagName(new String[] {                "options", "remote",                "port"}));            connectionSettings.setHost(host);            connectionSettings.setOldMD5Password(passwort);            connectionSettings.setXmlPort(xmlPort);            return connectionSettings;        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error("properties.xml neu erstellt", e);            }            AppleJuiceDialog.closeWithErrormessage(                "Fehler beim Zugriff auf die properties.xml. " +                "Die Datei wird neu erstellt.", false);            return null;        }    }