code: public void setValidating(boolean isValidating) {
          if (isValidating)
              MCWrapper.isValidating.set(true);
          else
              MCWrapper.isValidating.remove();
      }
docs: Indicates to the connection manager whether validation is occurring on the current thread.
  
  @param isValidating true if validation is occurring on the current thread. Otherwise false.