public Collection<Period> namePeriods(Collection<Period> periods, I18nFormat format) { for (Period period : periods) { period.setName(format.formatPeriod(period)); } return periods; }