@Inject(type = ModelService.class, value = ProblemAnalyzer.ID)
private ModelService<ProblemReport> m_service;
private void addDistributeInfo(Map<Object, Object> resultMap, ProblemReport report) {
PieGraphChartVisitor pieChart = new PieGraphChartVisitor("error", null);
Map<Object, Object> distributes = new HashMap<Object, Object>();
pieChart.visitProblemReport(report);
for (Item item : pieChart.getPieChart().getItems()) {
distributes.put(item.getTitle(), item.getNumber());
}
resultMap.put("distributeMap", distributes);
}