boolean oldSelected = selected;
boolean oldSelected = this.selected;
    public void setSelected(boolean selected) {        boolean oldSelected = selected;        this.selected = selected;        if (group != null)            group.setSelected(this, selected);        if (oldSelected != selected)            reload();    }