String recurrence = null;
if (eventDO.hasRecurrence() == true) {
final Recur recur = eventDO.getRecurrenceObject();
final TeamEventRecurrenceData recurrenceData = new TeamEventRecurrenceData(recur, PFUserContext.getTimeZone());
final RecurrenceFrequency frequency = recurrenceData.getFrequency();
if (frequency != null) {
final String unitI18nKey = frequency.getUnitI18nKey();
if (unitI18nKey != null) {
recurrence = recurrenceData.getInterval() + " " + getString(unitI18nKey);
}
}
}