Integer statusKey = (Integer) iter.next();
Status status = new Status(statusKey.intValue());
PropContainer propCont = (PropContainer) statusMap.get(statusKey);
Element propstat = DomUtil.createElement(document, XML_PROPSTAT, NAMESPACE);
propstat.appendChild(propCont.toXml(document));
propstat.appendChild(status.toXml(document));
response.appendChild(propstat);
}
} else {
// add a single '<status>' element