/* (non-Javadoc)
* @see org.richfaces.renderkit.AbstractRowsRenderer#doCleanup(org.richfaces.renderkit.TableHolder)
*/
protected void doCleanup(FacesContext context, TableHolder tableHolder) throws IOException {
int rest = 0;
UIDataAdaptor table = tableHolder.getTable();
ResponseWriter writer = context.getResponseWriter();
Integer columns = (Integer) table.getAttributes().get("columns");
boolean isCleanable = (null!=columns && columns.intValue()!=Integer.MIN_VALUE)? true:false;
int cols = isCleanable ? columns.intValue():1;
rest = tableHolder.getRowCounter()-tableHolder.getGridRowCounter()*cols;