try { LookAFeel[] looks = this.getLookAndFeels(); String temp = getFirstAttrbuteByTagName(new String[] {"options", "lookandfeels", "default", "name"}); if (temp != null) { for (int i=0; i<looks.length; i++) { if (temp.equals(looks[i].getName())) { return looks[i]; } } } } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); } return null; }
try { LookAFeel[] looks = this.getLookAndFeels(); String temp = propertyHandler .get("options_lookandfeels_default_name"); for (int i = 0; i < looks.length; i++) { if (temp.equals(looks[i].getName())) { return looks[i]; } } } catch (Exception e) { AppleJuiceDialog.rewriteProperties = true; if (logger.isEnabledFor(Level.ERROR)) { logger.error(PROPERTIES_ERROR_MESSAGE, e); } AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false); } return null; }
    public LookAFeel getDefaultLookAndFeel() {        try {            LookAFeel[] looks = this.getLookAndFeels();            String temp = getFirstAttrbuteByTagName(new String[] {"options",                "lookandfeels", "default", "name"});            if (temp != null) {                for (int i=0; i<looks.length; i++) {                    if (temp.equals(looks[i].getName())) {                        return looks[i];                    }                }            }        }        catch (Exception e) {            AppleJuiceDialog.rewriteProperties = true;            if (logger.isEnabledFor(Level.ERROR)) {                logger.error(PROPERTIES_ERROR_MESSAGE, e);            }            AppleJuiceDialog.closeWithErrormessage(PROPERTIES_ERROR, false);        }        return null;    }