public Resolution save() {
ComponentManager cm = new ComponentManager();
// Apply any changes to existing people (and create new ones)
for (Component component : components) {
Component realComponent;
if (component.getId() == null) {
realComponent = new Component();
}
else {
realComponent = cm.getComponent(component.getId());
}
realComponent.setName(component.getName());
cm.saveOrUpdate(realComponent);
}
// Then, if the user checked anyone off to be deleted, delete them
if (deleteIds != null) {