final List<InfoSiteGroupsByShift> infoSiteGroupsByShiftList = new ArrayList<InfoSiteGroupsByShift>();
infoSiteShiftsAndGroups.setInfoSiteGroupsByShiftList(infoSiteGroupsByShiftList);
infoSiteShiftsAndGroups.setInfoGrouping(InfoGrouping.newInfoFromDomain(grouping));
final IGroupEnrolmentStrategyFactory enrolmentGroupPolicyStrategyFactory = GroupEnrolmentStrategyFactory.getInstance();
final IGroupEnrolmentStrategy strategy = enrolmentGroupPolicyStrategyFactory.getGroupEnrolmentStrategyInstance(grouping);
if (strategy.checkHasShift(grouping)) {
for (final ExportGrouping exportGrouping : grouping.getExportGroupingsSet()) {
final ExecutionCourse executionCourse = exportGrouping.getExecutionCourse();
for (final Shift shift : executionCourse.getAssociatedShifts()) {
if (shift.containsType(grouping.getShiftType())) {
infoSiteGroupsByShiftList.add(createInfoSiteGroupByShift(shift, grouping));