docs: @GetMapping(path = SamlIdPConstants.ENDPOINT_IDP_METADATA)
      public void generateMetadataForIdp(final HttpServletResponse response) throws IOException {
          this.metadataAndCertificatesGenerationService.generate();
          val md = this.samlIdPMetadataLocator.getMetadata().getInputStream();
          val contents = IOUtils.toString(md, StandardCharsets.UTF_8);
          response.setContentType(CONTENT_TYPE);
          response.setStatus(HttpServletResponse.SC_OK);
          try (val writer = response.getWriter()) {
              LOGGER.debug("Producing metadata for the response");
              writer.write(contents);
              writer.flush();
          }
      }