* Returns the panel where KPI has been configured. If more than one panel is showing this KPI,
* then the first one is returned.
*/
protected Panel getKPIPanel(KPI kpi) throws Exception {
Panel currentPanel = null;
PanelsManager panelsManager = UIServices.lookup().getPanelsManager();
Set<PanelInstance> panelsI = panelsManager.getPanelsByParameter(DashboardHandler.KPI_CODE, kpi.getCode());
if (panelsI != null && !panelsI.isEmpty()) {
List<Panel> allPanels = new ArrayList<Panel>();
for (PanelInstance instance : panelsI) {