saxHandler.startDocument();
saxHandler.startElement(null, "modules", "modules", new AttributesImpl());
for (int i = 0; i < dependencies.length; i++) {
IvyNode dependency = dependencies[i];
if (dependency.getModuleRevision() == null
|| dependency.isCompletelyEvicted()) {
continue;
}
startModule(saxHandler, dependency);
Set artifactsOfModuleRev = (Set) moduleRevToArtifactsMap.get(dependency
.getModuleRevision().getId());
if (artifactsOfModuleRev != null) {
for (Iterator iter = artifactsOfModuleRev.iterator(); iter.hasNext();) {
Artifact artifact = (Artifact) iter.next();