tagMap.clear();
it = tags.iterator();
while (it.hasNext())
{
Tag tag = (Tag)it.next();
tagMap.put(tag.getId(), tag);
Iterator attributes = tag.getAttributes().iterator();
while (attributes.hasNext())
{
Attribute attribute = (Attribute)attributes.next();
if (attribute instanceof AttributeImpl)
{