totalReceived = new BigDecimal(0);
totalCheque = new BigDecimal(0);
totalJustGiving = new BigDecimal(0);
Element selections = new Element("selections");
FundraisingController ctrl = new FundraisingController();
fundraising = ctrl.read(year);
SimpleDateFormat monthFormat = new SimpleDateFormat("MMMMMMMMMM");
String[] months = df.getDateFormatSymbols().getMonths();
for (int month=1; month < 13; month++) {
Element selection = new Element("selection");
selection.addContent(new Element("monthSelected").setText(months[month-1]));
//add the volunteers
addVolunteers(selection, month);
//add the plan
if (fundraising != null) {
FundraisingPlan[] fundraisingPlan
= ctrl.getFundraisingsPlan(year, month);
for (FundraisingPlan plan : fundraisingPlan) {
if (plan != null) {
if (plan.getAmount() != null) {
Element timetable = new Element("timetable");
timetable.addContent(new Element("month").setText(months[plan.getMonthFunding()-1]));