@Override
  public void clearCaches() {
    super.clearCaches();

    waitForLock(myLock);
    try {
      if (myParsed) {
        myText = NO_TEXT;
      }
      else {
        setCachedLength(myText.get().length());
      }
    }
    finally {
      myLock.unlock();
    }
  }
@Override
  public void clearCaches()