try { String temp = getFirstAttrbuteByTagName(new String[] {"options", "loadplugins"}); ; if (temp == null || temp.length() == 0) { return true; } return new Boolean(temp).booleanValue(); } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return false; } }
try { Boolean tmp = propertyHandler.getAsBoolean("options_loadplugins"); if (tmp == null) { return true; } return tmp.booleanValue(); } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); return false; } }
    public boolean shouldLoadPluginsOnStartup() {        try {            String temp = getFirstAttrbuteByTagName(new String[] {"options",                "loadplugins"}); ;            if (temp == null || temp.length() == 0) {                return true;            }            return new Boolean(temp).booleanValue();        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);            return false;        }    }