final SimpleSelection simpleSelection = table.getSelection() == null ? new SimpleSelection()
: (SimpleSelection) table.getSelection();
if (clientSelection.isReset() || clientSelection.isSelectAll()) {
simpleSelection.clear();
}
try {
table.walk(context, new DataVisitor() {
public void process(FacesContext context, Object rowKey,