protected void onBtnSaveClick() throws PresentationLogicException { form.btnEdit().setVisible(true); AuditedClassVoCollection auditedClasses = new AuditedClassVoCollection(); int size = form.grdObjectList().getRows().size(); for (int i = 0; i < size; i++) { String className = form.grdObjectList().getRows().get(i).getValue(); boolean isAudited = form.grdObjectList().getRows().get(i).getIsAudited(); AuditedClassVo vo = new AuditedClassVo(); vo.setClassName(className); vo.setIsAudited(new Boolean(isAudited)); auditedClasses.add(vo); } try { domain.saveAuditConfig(auditedClasses); domain.activateAuditConfig(); } catch (StaleObjectException e) { engine.showMessage(ConfigFlag.UI.STALE_OBJECT_MESSAGE.getValue()); } onBtnApplyClick(); form.setMode(FormMode.VIEW); }