NoteElement notePrototype = (NoteElement)
NoteElement.getPrototype().clone();
elementPrototypes.put(ElementType.NOTE, notePrototype);
// Add package prototype
UmlPackage pkg = (UmlPackage) UmlPackage.getPrototype().clone();
PackageElement pkgPrototype = (PackageElement)
PackageElement.getPrototype().clone();
pkg.setName("Package 1");
pkgPrototype.setUmlPackage(pkg);
elementPrototypes.put(ElementType.PACKAGE, pkgPrototype);
// add component prototype
UmlComponent comp = (UmlComponent) UmlComponent.getPrototype().clone();