public static CalendarEventObject getEventObject(final TeamEvent src)
{
if (src == null) {
return null;
}
final CalendarEventObject event = new CalendarEventObject();
event.setUid(src.getUid());
event.setStartDate(src.getStartDate());
event.setEndDate(src.getEndDate());
event.setLocation(src.getLocation());
event.setNote(src.getNote());
event.setSubject(src.getSubject());
if (src instanceof TeamEventDO) {
copyFields(event, (TeamEventDO) src);
} else if (src instanceof TeamRecurrenceEvent) {
final TeamEventDO master = ((TeamRecurrenceEvent) src).getMaster();
if (master != null) {