docs: protected void validatePattern() {
          if (pattern.length() == 0) {
              throw new IllegalArgumentException(Tr.formatMessage(tc, "OPENTRACING_FILTER_PATTERN_BLANK"));
          }
  
          if (!regex) {
              try {
                  URI.create(pattern);
              } catch (IllegalArgumentException e) {
                  throw new IllegalArgumentException(Tr.formatMessage(tc, "OPENTRACING_FILTER_PATTERN_INVALID", pattern), e);
              }
          }
      }