TemporalReferenceSystem frame2 = new DefaultTemporalReferenceSystem(name2, null);
int[] calendarDate1 = {1900, 1, 1};
int[] calendarDate2 = {400, 1, 1};
CalendarDate referenceDate1 = new DefaultCalendarDate(frame1, IndeterminateValue.BEFORE, new SimpleInternationalString("Gregorian calendar"), calendarDate1);
CalendarDate referenceDate2 = new DefaultCalendarDate(frame2, IndeterminateValue.NOW, new SimpleInternationalString("Babylonian calendar"), calendarDate2);
JulianDate julianReference = new DefaultJulianDate(frame1, IndeterminateValue.NOW, 123456789);
cal.set(1900, 0, 1);
Instant begining1 = new DefaultInstant(new DefaultPosition(cal.getTime()));
cal.set(2000, 9, 17);
Instant ending1 = new DefaultInstant(new DefaultPosition(cal.getTime()));