public List<User> getAllUsers() {
    List<UserEntity> userEntities = userDAO.findAll();
    List<User> users = new ArrayList<>(userEntities.size());

    for (UserEntity userEntity : userEntities) {
      users.add(new User(userEntity));
    }

    return users;
  }
The maximum number of retries when handling OptimisticLockExceptions
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java