c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE));
c.setTime(s.getEndDate());
Calendar endCalendar = new GregorianCalendar(
c.get(Calendar.YEAR), c.get(Calendar.MONTH), c.get(Calendar.DATE));
boolean writeBurnDown = false;
BurnDown bd;
if (startCalendar.compareTo(endCalendar) <= 0) {
writeBurnDown = true;
}
while (startCalendar.compareTo(endCalendar) <= 0) {
bd = new BurnDown(0, 0, sprint.getId(), startCalendar.getTime());
bdList.add(bd);
startCalendar.add(Calendar.DATE, 1);
}
if (writeBurnDown) {
this.burnDownChartService.addBurnDownForSprint(bdList);