Examples/src/main/java/org/openestate/io/examples/Is24CsvWritingExample.java
protected static void writeToConsole(List<Is24CsvRecord> records) {
        LOGGER.info("writing document");
        StringBuilder csv = new StringBuilder();
        try (Is24CsvPrinter printer = Is24CsvPrinter.create(csv)) {
            printer.printRecords(records);
            LOGGER.info(StringUtils.repeat("-", 50)
                    + System.lineSeparator() + csv.toString());
        } catch (Exception ex) {
            LOGGER.error("Can't write document into a string!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }
    }
protected static void writeToConsole(List<Is24CsvRecord> records) {
        LOGGER.info("writing document");
        StringBuilder csv = new StringBuilder();
        try (Is24CsvPrinter printer = Is24CsvPrinter.create(csv)) {
            printer.printRecords(records);
            LOGGER.info(StringUtils.repeat("-", 50)
                    + System.lineSeparator() + csv.toString());
        } catch (Exception ex) {
            LOGGER.error("Can't write document into a string!");
            LOGGER.error("> " + ex.getLocalizedMessage(), ex);
            System.exit(1);
        }
    }
Write some {@link Is24CsvRecord} objects into a {@link String} and print the
results to the console.

@param records the CSV records to write