/** Method from the external library which prints the report. */ protected static void printReport(final ValidationReport report) throws IOException { final boolean success = report.isSuccess(); System.out.println("Validation " + (success ? "succeeded" : "failed")); if (!success) { System.out.println("---- BEGIN REPORT ----"); System.out.println(WRITER.writeValueAsString(report.asJsonObject())); System.out.println("---- END REPORT ----"); } }