// different from the existing ones
updateTreeModel(structures);
}
private void updateTreeModel(SelectedObjectStructures structures) {
AttributeSelectionModel oldModel = treeModel.get();
Object memento = oldModel.getMemento();
AttributeSelectionModel newModel = new AttributeSelectionModel(
classes.get().getLdapLocation(), type, structures, ldapStructure, ldapCache);
newModel.restore(memento);
treeModel.set(newModel);
}