code: @Override
      public User createUser(User user) throws UnauthorizedException, NameConflictException {
          try {
              return userDao.createUser(user);
          } catch (DuplicateKeyException e) {
              throw new NameConflictException("User name is already in use", e);
          }
      }
docs: -----------------------------------------------------------------------