* @return the association element
*/
private UmlAssociation createAssociation(ElementType elemType,
Attributes attributes) {
int id = Integer.valueOf(attributes.getValue("id"));
UmlAssociation assoc = (UmlAssociation) elementFactory.create(elemType);
assoc.setName(attributes.getValue("name"));
int sourceId = Integer.valueOf(attributes.getValue("source"));
int targetId = Integer.valueOf(attributes.getValue("target"));
assoc.setSource(elementMap.get(sourceId));
assoc.setTarget(elementMap.get(targetId));
elementMap.put(id, assoc);
return assoc;
}