/**
* Save changes on the KPI being edited.
*/
public void actionSubmit(Panel panel, CommandRequest request) throws Exception {
KPIEditor kpiEditor = UIBeanLocator.lookup().getEditor();
kpiEditor.actionSubmit(request);
// Make the panel instance's description match the KPI description.
String lang = LocaleManager.currentLang();
String kpiDescr = request.getRequestObject().getParameter(KPIEditor.PARAM_KPI_DESCRIPTION);
if (!StringUtils.isBlank(kpiDescr)) panel.getInstance().setTitle(kpiDescr, lang);
// Make changes persistent.
KPI kpi = kpiEditor.getKpi();
kpi.save();
// Ensure that the UI editor & viewer see the KPI changes
passKPItoUI(kpi);
}