try { String temp = getFirstAttrbuteByTagName(new String[] {"options", "defaulttheme"}); ; if (temp == null || temp.length() == 0) { throw new Exception("Kein Defaulttheme vorhanden."); } return temp; } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return ""; } }
try { String temp = propertyHandler.get("options_defaulttheme"); if (temp.length() == 0) { throw new Exception("Kein Defaulttheme vorhanden."); } return temp; } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return ""; } }
    public String getDefaultTheme() {        try {            String temp = getFirstAttrbuteByTagName(new String[] {"options",                "defaulttheme"}); ;            if (temp == null || temp.length() == 0) {                throw new Exception("Kein Defaulttheme vorhanden.");            }            return temp;        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);            return "";        }    }