if (selectedDateKey != null
&& JSON.containsKey(context, selectedDateKey)
&& selectedDateBindType != BindType.STORE) {
Object value = JSON.get(context, selectedDateKey);
CalendarDate selectedDateLocal = null;
if (value instanceof CalendarDate) {
selectedDateLocal = (CalendarDate)value;
} else if (selectedDateBindMapping == null) {
if (value != null) {