// now synchronize the listBox
ListModelList lml = (ListModelList) this.listBoxSecRights.getListModel();
// Check if the object is new or updated
// -1 means that the obj is not in the list, so it's new.
if (lml.indexOf(aRight) == -1) {
lml.add(aRight);
} else {
lml.set(lml.indexOf(aRight), aRight);
}