pkg.setName("Package 1");
pkgPrototype.setUmlPackage(pkg);
elementPrototypes.put(ElementType.PACKAGE, pkgPrototype);
// add component prototype
UmlComponent comp = (UmlComponent) UmlComponent.getPrototype().clone();
comp.setName("Component 1");
ComponentElement compElem = (ComponentElement)
ComponentElement.getPrototype().clone();
compElem.setModelElement(comp);
compElem.addNodeChangeListener(diagram);
elementPrototypes.put(ElementType.COMPONENT, compElem);