String email = req.getParameter("email");
if(user.equals(email) || d.checkSubscriptionExists(user, email)) {
List<WorklistItemObject> wiol = d.getWorklistAsWIO(email);
List<FinalScheduleModel> fsml = fs.getFinalSchedule(wiol);
for(Iterator<FinalScheduleModel> i = fsml.iterator(); i.hasNext();){
FinalScheduleModel fsm = i.next();
builder.append("\t<item>\n");
builder.append("\t\t<dept>"+fsm.getDepartment()+"</dept>\n");
builder.append("\t\t<course>"+fsm.getCourse()+"</course>\n");
builder.append( "\t\t<section>"+fsm.getSection()+"</section>\n");
builder.append( "\t\t<building>"+StringEscapeUtils.escapeXml(fsm.getBuilding())+"</building>\n");
builder.append("\t\t<time>"+fsm.getTime()+"</time>\n");
builder.append("\t\t<split>"+StringEscapeUtils.escapeXml(fsm.getAlphaSplit())+"</split>\n");
builder.append("\t</item>\n");
// xmlout += "\t<item>\n";
// xmlout += "\t\t<dept>"+fsm.getDepartment()+"</dept>\n";
// xmlout += "\t\t<course>"+fsm.getCourse()+"</course>\n";