docs: public static boolean isBeanValidationAvailable()
      {
          if (beanValidationAvailable == null)
          {
              try
              {
                  try
                  {
                      beanValidationAvailable = (Class.forName("javax.validation.Validation") != null);
                  }
                  catch(ClassNotFoundException e)
                  {
                      beanValidationAvailable = Boolean.FALSE;
                  }
      
                  if (beanValidationAvailable)
                  {
                      try
                      {
                          // Trial-error approach to check for Bean Validation impl existence.
                          // If any Exception occurs here, we assume that Bean Validation is not available.
                          // The cause may be anything, i.e. NoClassDef, config error...
                          _ValidationUtils.tryBuildDefaultValidatorFactory();
                      }
                      catch (Throwable t)
                      {
                          log.log(Level.FINE, "Error initializing Bean Validation (could be normal)", t);
                          beanValidationAvailable = false;
                      }
                  }
              }
              catch (Throwable t)
              {
                  log.log(Level.FINE, "Error loading class (could be normal)", t);
                  beanValidationAvailable = false;
              }
  
              //log.info("MyFaces Bean Validation support " + (beanValidationAvailable ? "enabled" : "disabled"));
          }
          return beanValidationAvailable; 
      }