class UserModelDataMapper {

  public UserModel transform(User user) {
    if (user == null) {
      throw new IllegalArgumentException("Cannot transform a null value");
    }
    UserModel userModel = new UserModel(user.getUserId());
    userModel.setFullName(user.getFullName());

    return userModel;
  }

}