public class ExecutionPeriodsForAccountingEventCreationProvider implements DataProvider {
@Override
public Object provide(Object source, Object currentValue) {
final AccountingEventCreateBean accountingEventCreateBean = (AccountingEventCreateBean) source;
if (accountingEventCreateBean.getExecutionYear() != null) {
return accountingEventCreateBean.getExecutionYear().getExecutionPeriodsSet();
}
return Collections.EMPTY_LIST;
}