ArrayList<Object> objUpdate = new ArrayList<Object>();
boolean bn;
if (table == getTblTEA()) {
for (Object item : table.getContainerDataSource().getItemIds()) {
DataTea s = (DataTea) item;
if (s.isNew())
objSave.add(s);
else
objUpdate.add(s);
}
} else if (table == getTblDescrip()) {
for (Object item : table.getContainerDataSource().getItemIds()) {
DataTeaDescripcion s = (DataTeaDescripcion) item;
if (s.isNew())
objSave.add(s);
else
objUpdate.add(s);
}
} else if (table == getTblGroups()) {
for (Object item : table.getContainerDataSource().getItemIds()) {
GroupsData s = (GroupsData) item;
if (s.isNew())
objSave.add(s);
else
objUpdate.add(s);
}
}