if (!strategy.checkStudentInGrouping(groupProperties, username)) {
throw new NotAuthorizedException();
}
Shift shift = FenixFramework.getDomainObject(shiftCode);
result = strategy.checkNumberOfGroups(groupProperties, shift);
if (!result) {
throw new InvalidArgumentsServiceException();
}