this.userService.signUpUserAccount(user, factoryView.getUsername(), factoryView.getPassword());
this.userHolder.setUser(user);
this.applicationEventPublisher.publishEvent(new LoginEvent(this, request.getSession(), user));
} catch (UserAlreadyExistentException ex) {
errors.reject("user.duplicated.username", "Username already existent.");
return new AjaxModelAndView(null, errors);
}
return new AjaxModelAndView(this.getSuccessView(), errors);
}