currentNode = null;
int elementId = Integer.valueOf(attributes.getValue("element-id"));
int shapeId = Integer.valueOf(attributes.getValue("id"));
Node shape = null;
NamedElement elem = elementMap.get(elementId);
if (elem instanceof UmlClass) {
shape = new ClassElement((UmlClass) elem);
} else if (elem instanceof UmlPackage) {
shape = diagram.getElementFactory().createPackage((UmlPackage) elem);
} else if (elem instanceof UmlComponent) {