Map timeSpendMap = null;
if (demo != null && demo ){
timeSpendMap = getDemoTimeSpendMap(requestId);
}else{
timeSpendMap = (Map<String,String>) cfm.queryPieInformation(requestId);
}
//By default, charting info will be generated.
Boolean doCharting = (Boolean )handlerCtx.getInputValue("doCharting");
boolean hasChartData = getTimeSpendInfo(infoMap, timeSpendMap, doCharting);