public void setSelectableDateRange(Date min, Date max) {
        if (min == null) {
            minSelectableDate = defaultMinSelectableDate;
        } else {
            minSelectableDate = min;
        }
        if (max == null) {
            maxSelectableDate = defaultMaxSelectableDate;
        } else {
            maxSelectableDate = max;
        }
        if (maxSelectableDate.before(minSelectableDate)) {
            minSelectableDate = defaultMinSelectableDate;
            maxSelectableDate = defaultMaxSelectableDate;
        }
    }