boolean bool = false; Object booleanBinding = valueForBinding(binding); if (booleanBinding == null) {  bool = !super.hasBinding(binding); } else if (booleanBinding instanceof Integer) { bool = ((Integer)booleanBinding).intValue() == 1; } else if (booleanBinding instanceof String && ((String)booleanBinding).equals("YES") || ((String)booleanBinding).equals("1")) { bool = true; } return bool;
return booleanValueForBinding(binding);
    public boolean booleanForBinding(String binding) {        boolean bool = false;        Object booleanBinding = valueForBinding(binding);        if (booleanBinding == null) {            // Need this because binding NO to a binding results in the component having a binding but the value being null.  Go figure.            bool = !super.hasBinding(binding);        } else if (booleanBinding instanceof Integer) {            bool = ((Integer)booleanBinding).intValue() == 1;        } else if (booleanBinding instanceof String && ((String)booleanBinding).equals("YES") ||                   ((String)booleanBinding).equals("1")) {            bool = true;        }        return bool;    }