docs: protected boolean matchBodyPattern(HttpMessage msg, Pattern pattern, StringBuilder sb) { // ZAP: Changed the type of the parameter "sb" to StringBuilder.
          Matcher matcher = pattern.matcher(msg.getResponseBody().toString());
          boolean result = matcher.find();
          if (result) {
              if (sb != null) {
                  sb.append(matcher.group());
              }
          }
          return result;
      }