public UserEntity getUserEntity(Integer userId) {
    return (userId == null) ? null : userDAO.findByPK(userId);
  }
The maximum number of retries when handling OptimisticLockExceptions
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java