while (it.hasNext()) {
final Map.Entry entry = (Map.Entry) it.next();
final Set bsnSet = (Set) entry.getValue();
// Sorted set with bundle archives, same bsn, different versions
for (Iterator itV = bsnSet.iterator(); itV.hasNext();) {
final BundleArchive ba = (BundleArchive) itV.next();
dependencies.appendChild(doc.createTextNode("\n\n" +prefix2));
dependencies.appendChild(doc.createComment(ba.relPath));
dependencies.appendChild(doc.createTextNode("\n" +prefix2));
final Element dependency = doc.createElement("dependency");
dependencies.appendChild(dependency);
// Dummy element to read mvn coordinates from
final Element coordinateEl = doc.createElement("dummy");
addMavenCoordinates(coordinateEl, ba);
addMavenCoordinates(coordinateEl, dependency, prefix3);
dependency.appendChild(doc.createTextNode("\n" +prefix2));
// Bundle metadata for xsl rendering
final Element bundle = doc.createElement("bundle");
bundles.appendChild(doc.createTextNode("\n" +prefix2));
bundles.appendChild(bundle);
bundle.appendChild(doc.createTextNode("\n" +prefix3));
final Element name = doc.createElement("name");
bundle.appendChild(name);
name.appendChild(doc.createTextNode(ba.name));
log("name: " +ba.name, Project.MSG_VERBOSE);
String description = ba.getBundleDescription();
log("description: " +description, Project.MSG_VERBOSE);
if (null==description) {
description = "";
}
bundle.appendChild(doc.createTextNode("\n" +prefix3));