51525354555657585960
*/ public void register(User user) throws DuplicatedUserException { User dupuser = userDao.getUserById(user.getUserId()); if (dupuser != null) { throw new DuplicatedUserException("duplicated user: " + user.getUserId()); } userDao.insertUser(user); }