321322323324325326327328329330
if (isUsernameAvailable(user.getUsername())) { user.setAccountOriginator(true); validateUserAlias(user); userDAO.save(user); } else { throw new UsernameUnavailableException(user.getUsername()); } handleUserRequest(user, false); return user; }