// If the displayer associated to the kpi is not the new displayer, change it.
if (!kpiDisplayerType.getUid().equals(selectedType.getUid())) {
DataDisplayer newDisplayer = selectedType.createDataDisplayer();
newDisplayer.setDefaultSettings();
newDisplayer.copyFrom(kpiDisplayer);
kpi.setDataDisplayer(newDisplayer);
setKpi(kpi);
return null;
}
return null;