code: public static <T> Middleware<SyncHandler<Response<T>>, AsyncHandler<Response<ByteString>>> htmlSerializeResponseSync(
        final String templateName) {
      Middleware<SyncHandler<Response<T>>, AsyncHandler<Response<T>>> syncToAsync = Middleware::syncToAsync;
      return syncToAsync.and(htmlSerializeResponse(templateName));
    }
docs: Sync middleware for a Response object.
  
  @param templateName The template name, respective to the "resources" folder
  @param <T>          The Type of the parameters
  @return the middlware