public void write(final String creditor,
                      final String debtor,
                      final int amount,
                      final int risk) {
        try {
            writer.write(String.format("%s,%s,%d,%d\n", creditor, debtor, amount, risk));
        } catch (final IOException e) {
            fail(e.getLocalizedMessage());
        }
    }
This class generates a CSV file that can be visualised using the iunera Code Analysis tool.
<p>
https://github.com/iunera/codeanalysis
stroom-app/src/test/java/stroom/guice/IuneraDependencyCsvWriter.java