docs: public Record createSharedRecord(Object objKey, RecordOwner recordOwner)
      {
          if (objKey instanceof Integer)
          {
              int iCalendarType = ((Integer)objKey).intValue();
              if (iCalendarType == CalendarEntry.APPOINTMENT_ID)
                  return new Appointment(recordOwner);
              if (iCalendarType == CalendarEntry.ANNIVERSARY_ID)
                  return new Anniversary(recordOwner);
          }
          return null;
      }