if (event.getValue() == null) {
// Since the value is null, we'll just use the old value to grab the ID.
removeCapability(capability);
} else {
updateCapability(event.getValue());
widget.showSaved();
}
}
});
widget.setComponents(components);
widget.setAttributes(attributes);