docs: static ValidatorFactory getValidatorFactory()
      {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "getValidatorFactory");
  
          ValidatorFactory validatorFactory;
          ComponentMetaData cmd = ComponentMetaDataAccessorImpl.getComponentMetaDataAccessor().getComponentMetaData();
  
          if (svInstance != null)
          {
              validatorFactory = svInstance.getValidatorFactory(cmd);
          }
          else
          {
              // This method is called from java:comp ObjectFactory.  If the CMD on the
              // thread is DefaultComponentMetaData (with no ModuleMetaData), then we must be
              // in the client container.  We support that crudely by returning a default
              // ValidatorFactory.
              if (cmd != null && cmd.getModuleMetaData() == null)
              {
                  if (isTraceOn && tc.isDebugEnabled())
                      Tr.debug(tc, "No BeanValidation service; Client Container : getting default ValidatorFactory");
  
                  validatorFactory = AccessController.doPrivileged(new PrivilegedAction<ValidatorFactory>() {
                      @Override
                      public ValidatorFactory run() {
                          return Validation.buildDefaultValidatorFactory();
                      }
                  });
              }
              else
              {
                  throw new IllegalStateException("BeanValidation service is not available.");
              }
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "getValidatorFactory: " + Util.identity(validatorFactory));
  
          return validatorFactory;
      }