docs: private void createReportFile(String reportFileName, String content, File targetDirectory) {
          if (!targetDirectory.exists()) {
              if (!targetDirectory.mkdirs()) {
                  throw new CitrusRuntimeException("Unable to create report output directory: " + getReportDirectory() + (StringUtils.hasText(outputDirectory) ? "/" + outputDirectory : ""));
              }
          }
  
          try (Writer fileWriter = new FileWriter(new File(targetDirectory, reportFileName))) {
              fileWriter.append(content);
              fileWriter.flush();
          } catch (IOException e) {
              log.error("Failed to create test report", e);
          }
      }