docs: @SuppressWarnings("PMD.DataflowAnomalyAnalysis")
      protected void doRespond(Request.In event, IOSubchannel channel)
              throws ParseException {
          final HttpRequest request = event.httpRequest();
          prefixPattern.pathRemainder(request.requestUri()).ifPresent(path -> {
              boolean success = false;
              if (TEMPLATE_PATTERN.matcher(path).matches()) {
                  success = sendProcessedTemplate(event, channel, path);
              } else {
                  success = ResponseCreationSupport.sendStaticContent(
                      request, channel, requestPath -> contentLoader
                          .getResource(contentPath + "/" + path),
                      maxAgeCalculator);
              }
              event.setResult(true);
              event.stop();
              if (!success) {
                  channel.respond(new Close());
              }
          });
      }