public static String getTable(LogTableContext context) { Assert.notNull(context, "context is null"); Assert.notNull(context.getColumns(), "columns is null"); Assert.notNull(context.getRows(), "rows is null"); int[] padding = getPadding(context.getColumns(), context.getRows()); int cols = context.getColumns().size(); int rows = context.getRows().size(); String header = getHeader(context.getColumns(), padding, context.isLeftAlign()); updateArgsList(context.getRows(), padding, context.isLeftAlign()); Properties properties = getProperties(context.getRows()); String tableString = getTableString(rows, cols); String resolved = HELPER.replacePlaceholders(tableString, properties); return header + "\n" + resolved; }