docs: private boolean addSpecToList(List<TraceElement> updatedSpecList, final String specString, final String clazz, final String level, final String enableString) {
          TraceSpecificationException tex = null;
  
          boolean enable = true;
          final boolean enableSetting;
  
          final String fullString = clazz + "=" + level + "=" + enableString;
  
          String setLower = enableString.trim().toLowerCase();
          if (setLower.equals(TrLevelConstants.TRACE_ENABLED) || setLower.equals(TrLevelConstants.TRACE_ON)) {
              enableSetting = true;
          } else if (setLower.equals(TrLevelConstants.TRACE_DISABLED) || setLower.equals(TrLevelConstants.TRACE_OFF)) {
              enableSetting = false;
              enable = false;
          } else {
              tex = new TraceSpecificationException("Unknown trace setting, must be either 'enabled' or 'disabled'",
                              "TRACE_STRING_BAD_ACTION",
                              enableString,
                              fullString);
              enableSetting = true;
              tex.setPreviousException(ex);
              ex = tex;
          }
  
          int found = -1;
          int traceLevel = 0;
          int traceLevelCount = 0;
  
          for (int i = 0; i < TrLevelConstants.traceLevels.length; i++) {
              final String[] traceLevelsRow = TrLevelConstants.traceLevels[i];
              for (int j = 0; j < traceLevelsRow.length; j++) {
                  if (level.equalsIgnoreCase(traceLevelsRow[j])) {
                      found = i;
                      traceLevel = traceLevelCount;
                      break;
                  }
                  traceLevelCount++;
              }
              if (found >= 0) {
                  break;
              }
          }
  
          if (found < 0) {
              tex = new TraceSpecificationException("Unknown trace level", "TRACE_STRING_BAD_LEVEL",
                              level,
                              fullString);
              tex.setPreviousException(ex);
              ex = tex;
          } else if (tex == null) {
              // Only add the specification string to the list if there was not an exception
              TraceElement spec = new TraceElement(clazz, found, traceLevel, enableSetting, fullString);
              updatedSpecList.add(spec);
  
              // If found (as a Logger level) is < INFO, then we have some kind of 
              // detailed trace enabled for this trace spec.
              return enable && found >= 0 && TrLevelConstants.levels[found].intValue() < Level.INFO.intValue();
          }
  
          return false;
      }