Application.lookup().setBaseAppDirectory(webAppDir.getAbsolutePath());
File kpisFile = new File(webAppDir, "WEB-INF/etc/appdata/initialData/showcaseKPIs.xml");
FileInputStream is = new FileInputStream(kpisFile);
ImportManager importManager = DataDisplayerServices.lookup().getImportManager();
ImportResults context = importManager.parse(is);
// Just copy the output generated as replacing methods of the ShowcaseKpisTest class.
for (KPI kpi : context.getKPIs()) {
// Leave out report-like KPIs with a large number of rows.
if (kpi.getCode().equals("kpi_30771353684719633")) continue;