int targetShapeId = Integer.valueOf(attributes.getValue("target"));
currentConnection.setNode0(shapeMap.get(sourceShapeId));
currentConnection.setNode1(shapeMap.get(targetShapeId));
diagram.addChild(currentConnection);
} else if ("diagram".equals(qName)) {
diagram = new UmlDiagram(elementFactory);
diagrams.add(diagram);
}
}