public Resolution save() {
ComponentManager cm = new ComponentManager();
// Save any changes to existing components (and create new ones)
for (Component component : components) {
cm.saveOrUpdate(component);
}
// Then, if the user checked anyone off to be deleted, delete them
if (deleteIds != null) {
for (int id : deleteIds) {