code: @Override
      public String intern(String value, boolean doForce) {
          if (value == null) {
              return value;
          }
  
          if (checkValues) {
              String vMsgId = validate(value, valueType);
              if (vMsgId != null) {
                  Tr.warning(tc, vMsgId, getHashText(), value, valueType);
              }
          }
  
          String priorIntern = internMap.get(value);
          if ((priorIntern != null) || !doForce) {
              return priorIntern;
          }
  
          priorIntern = value;
          internMap.put(value, value);
  
          totalLength += value.length();
          if ((totalLength - lastReportedLength) > logThreshHold) {
              lastReportedLength = totalLength;
              if (tc.isDebugEnabled()) {
                  Tr.debug(tc, MessageFormat.format("[ {0} ] Total [ {1} ]", hashText, Integer.valueOf(totalLength)));
              }
          }
  
          return priorIntern;
      }
docs: Not set as Trivial: We want to trace intern calls.