class InterviewAssignmentServiceImpl implements InterviewAssignmentService {

    @Override
    public ServiceResult<Void> assignApplications(List<StagedApplicationResource> stagedInvites) {
        stagedInvites.stream()
                .distinct()
                .map(invite -> getApplication(invite.getApplicationId()))
                .forEach(application -> assignApplicationToCompetition(application.getSuccess()));

        return serviceSuccess();
    }

}