for (SchedulingResponseItem resp : respItems) {
Element elResp = writer.begin("C", "response");
Element elRecip = elResp.begin("C", "recipient");
elRecip.begin("D", "href").writeText(resp.getRecipient(), false).close();
elRecip.close();
StatusResponse stat = resp.getStatus();
elRecip.begin(CALDAV_PREFIX, "request-status").writeText(stat.code + ";" + stat.description, false).close();
if (resp.getiCalText() != null) {
elRecip.begin(CALDAV_PREFIX, "calendar-data").writeText(resp.getiCalText(), false).close();
}
elResp.close();