while (itr.hasNext()) {
Element resourceRef = (Element)itr.next();
sb.append("\t\t<resource-mapping>\n");
sb.append("\t\t\t<resource-name>").append(resourceRef.elementText("res-ref-name")).append("</resource-name>\n");
sb.append("\t\t\t<resource-type>").append(resourceRef.elementText("res-type")).append("</resource-type>\n");
sb.append("\t\t\t<resource-link>").append(resourceRef.elementText("res-ref-name")).append("</resource-link>\n");
sb.append("\t\t</resource-mapping>\n");
}
sb.append("\t</web-module>\n");