final FormatInstance instance)
throws RendererException {
if (!instance.isEmpty()) {
GridInstance gridInstance = (GridInstance) instance;
boolean[] requiredColumns = gridInstance.getRequiredColumns();
int requiredColumnCount = 0;
for (int i = 0; i < requiredColumns.length; i++) {
boolean requiredColumn = requiredColumns[i];
requiredColumnCount += requiredColumn ? 1 : 0;
}
writeGrid(context, gridInstance,
context.getLayoutModule(),
gridInstance.getRequiredRows(),
requiredColumns,
requiredColumnCount);
}
}