unsaved = false;
CalendarService service=CalendarService.getInstance();
WorkingCalendar wc=form.getCalendar();
UndoableEditSupport undoableEditSupport=undoController.getEditSupport();
if (undoableEditSupport!=null){
undoableEditSupport.postEdit(new CalendarEdit(editedCalendar,wc));
}
service.assignCalendar(editedCalendar,wc);
service.saveAndUpdate(editedCalendar);