public Object provide(Object source, Object currentValue) {
SummariesManagementBean bean = (SummariesManagementBean) source;
Lesson lesson = bean.getLesson();
Shift shift = bean.getShift();
SummaryType summaryType = bean.getSummaryType();
Summary summary = bean.getSummary();
List<YearMonthDay> possibleSummaryDates = new ArrayList<YearMonthDay>();
if (summaryType != null && summaryType.equals(SummaryType.NORMAL_SUMMARY)) {
if (lesson != null) {
possibleSummaryDates.addAll(lesson.getAllPossibleDatesToInsertSummary());
}
// Show SummaryDate when edit summary