code: @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());
              }
          });
      }
docs: Removes the prefix specified in the constructor from the
  path in the request. Checks if the resulting path
  ends with `*.ftl.*`. If so, processes the template with the
  {@link #sendProcessedTemplate(Request.In, IOSubchannel, String)} (which
  uses {@link #fmSessionModel(Optional)}) and sends the result.
  Else, tries to serve static content with the optionally
  shortened path.
  
  @param event the event
  @param channel the channel
  @throws ParseException the parse exception