@RequestMapping(value="burndownchart/{sprintid}/", method=RequestMethod.GET)
public @ResponseBody List<SerializableBurnDownChart> getBurnDownChart(@PathVariable int sprintid) {
List<BurnDownChart> bdchart = this.burnDownChartService.getAllBurnDownCharts(sprintid);
List<SerializableBurnDownChart> sbdchart = new ArrayList<SerializableBurnDownChart>();
for (Iterator<BurnDownChart> iterator = bdchart.iterator(); iterator.hasNext();) {
BurnDownChart bdc = iterator.next();
SerializableBurnDownChart sbdc = new SerializableBurnDownChart(bdc.getDate(), bdc.getReal(), bdc.getOptimal());
System.out.println(bdc.getDate()+" "+bdc.getReal());
sbdchart.add(sbdc);
}
return sbdchart;
}