if (domain instanceof LabelDomain) {
LabelDomain labelDomain = (LabelDomain) domain;
labelIntervalsToHideI18nMap = new HashMap<Locale,String>(labelDomain.getLabelIntervalsToHideI18nMap());
}
else if (domain instanceof DateDomain) {
DateDomain dateDomain = (DateDomain) domain;
dateTamInterval = String.valueOf(dateDomain.getTamInterval());
Date minDate = dateDomain.getMinDate();
if (minDate != null) dateMinDate = dateFormat.format(minDate);
Date maxDate = dateDomain.getMaxDate();
if (maxDate != null) dateMaxDate = dateFormat.format(maxDate);
}
else if (domain instanceof NumericDomain) {
NumericDomain numericDomain = (NumericDomain) domain;
numericTamInterval = String.valueOf(numericDomain.getTamInterval());