class StakeholderServiceImpl implements StakeholderService {

    @Override
    public ServiceResult<Void> createStakeholder(String inviteHash, RegistrationForm form) {
        StakeholderRegistrationResource stakeholderRegistrationResource = new StakeholderRegistrationResource();
        stakeholderRegistrationResource.setPassword(form.getPassword());
        stakeholderRegistrationResource.setFirstName(form.getFirstName());
        stakeholderRegistrationResource.setLastName(form.getLastName());
        return competitionSetupStakeholderRestService.createStakeholder(inviteHash, stakeholderRegistrationResource).toServiceResult();
    }

}