code: 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; 
      }
docs: This method determines if Bean Validation is present.
  
  Eager initialization is used for performance. This means Bean Validation binaries
  should not be added at runtime after this variable has been set.
  @return true if Bean Validation is available, false otherwise.