code: 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;
      }
docs: Get the shared record that goes with this key.
  (Always override this).
  @param objKey The value that specifies the record type.
  @return The correct (new) record for this type (or null if none).