}
private void createEditorFromBeans(PnmlDocument.Pnml pnml) throws Exception
{
// parse through PNML an create Model Elements
Net aNet = pnml.getNet();
editor = new IEditor[1];
editor[0] = getMediator().createEditor(true);
// attr. id
((PetriNetModelProcessor) editor[0].getModelProcessor()).setId(aNet.getId());
// attr. type
// Type no other types
// name
importPlaces(aNet.getPlaceArray(), 0);
importTransitions(aNet.getTransitionArray(), 0);
// important... import arcs in the end
importArcs(aNet.getArcArray(), 0);
}