Domain domain = (property != null ? property.getDomain() : null);
if (domain == null) return;
maxNumberOfIntervals = String.valueOf(domain.getMaxNumberOfIntervals());
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();