private void createJavaBeansInstances(EditorVC editor)
{
ModelElementContainer elementContainer = editor.getModelProcessor().getElementContainer();
PetriNetModelProcessor petrinetModel = (PetriNetModelProcessor) editor.getModelProcessor();
pnmlDoc = PnmlDocument.Factory.newInstance();
PnmlType iPnml = pnmlDoc.addNewPnml();
// Initialisieren der Statusbar
int resources = petrinetModel.getResources().size();
int roles = petrinetModel.getRoles().size();
int orgaUnits = petrinetModel.getOrganizationUnits().size();
int resourcesMapping = petrinetModel.getResourceMapping().size();
int rootElements = elementContainer.getRootElements().size();
int arcs = elementContainer.getArcMap().size();
// TODO (blackfox) - extend statusbars for simulations
for (int i = 0; i < statusBars.length; i++)
statusBars[i].startProgress("Save to File", resources + roles + resourcesMapping + orgaUnits + rootElements + arcs);
// ------------------------------
// pnmlDoc.documentProperties();
XmlCursor cursor = iPnml.newCursor();
cursor.insertComment(comment);
/* ##### NET ##### */
NetType iNet = iPnml.addNewNet();
// attr type
iNet.setType(petrinetModel.getType());
// attr id
iNet.setId(petrinetModel.getId());
// name