class InternalUserServiceImpl implements InternalUserService {

    @Override
    public ServiceResult<Void> createInternalUser(String inviteHash, RegistrationForm registrationForm) {
        InternalUserRegistrationResource internalUserRegistrationResource = new InternalUserRegistrationResource();
        internalUserRegistrationResource.setPassword(registrationForm.getPassword());
        internalUserRegistrationResource.setFirstName(registrationForm.getFirstName());
        internalUserRegistrationResource.setLastName(registrationForm.getLastName());
        return userRestService.createInternalUser(inviteHash, internalUserRegistrationResource).toServiceResult();
    }

}