{
Iterator dependencyIterator = dependencies.iterator();
while( dependencyIterator.hasNext() )
{
RssJbnDependency rjd = (RssJbnDependency)dependencyIterator.next();
Map nameValuePair = new HashMap();
nameValuePair.put( "rdf:about", rjd.getUrl() );
nameValuePair.put( RssJbnPatch.PREFIX + ":" + RssJbnDependency.ATTR_PRODUCT_NAME, rjd.getProductName() );
nameValuePair.put( RssJbnPatch.PREFIX + ":" + RssJbnDependency.ATTR_PRODUCT_VERSION, rjd.getProductVersion() );
nameValuePair.put( RssJbnPatch.PREFIX + ":" + RssJbnDependency.ATTR_JON_RESOURCE_TYPE, rjd.getJonResourceType() );
nameValuePair.put( RssJbnPatch.PREFIX + ":" + RssJbnDependency.ATTR_JON_RESOURCE_VERSION, rjd.getJonResourceVersion() );
outerNode.appendChild(
add( RssJbnPatch.PREFIX + ":" + RssJbnPatch.ATTR_PRODUCT,
nameValuePair, rjd.getName() ) );
}
baseElement.appendChild( outerNode );
}
return baseElement;