public User getUser(UserEntity userEntity) {
    return (null == userEntity) ? null : new User(userEntity);
  }
The maximum number of retries when handling OptimisticLockExceptions
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java