public User create(final UserDTO userData) {

    final List<Role> role = roleService.getByName(UserRoleName.BASIC);

    final User user = new User();
    user.setName(userData.getUsername());
    user.setPassword(userData.getPassword());
    user.setState(UserState.ACTIVE);
    user.setRoles(role);

    return user;
  }