class InterviewAllocationServiceImpl implements InterviewAllocationService {

    @Override
    @Transactional
    public ServiceResult<Void> notifyAllocation(InterviewNotifyAllocationResource interviewNotifyAllocationResource) {
        return getInterviewParticipant(interviewNotifyAllocationResource.getAssessorId(), interviewNotifyAllocationResource.getCompetitionId())
                .andOnSuccess(assessor -> createInterviews(interviewNotifyAllocationResource, assessor))
                .andOnSuccess(assessor -> sendAllocationNotification(
                        interviewNotifyAllocationResource.getSubject(),
                        interviewNotifyAllocationResource.getContent(),
                        assessor,
                        NOTIFY_ASSESSOR_OF_INTERVIEW_ALLOCATIONS

                ));
    }

}