public static TablePrinter fromOutputFormat(OutputFormat format, PrintWriter out) {
        switch (format) {
            case JSON:
                return new JsonTablePrinter(out);

            default:
                return new TextTablePrinter(out);
        }
    }
@author Nico Bergemann <barracuda415 at yahoo.de>
disunity-cli/src/main/java/info/ata4/disunity/cli/util/TablePrinter.java