Container container = (Container) stateMap.get(fromGroup);
if (container==null) {
DiagramElement de = ii.returnContext(c, fromGroup, new TextLine(fromGroup.getLabel()), true, null);
if (!(de instanceof Context)) {
throw new Kite9ProcessingException(fromGroup + " already exists in the diagram as a " + de.getClass()
+ " (Context needed)");
}
stateMap.put(fromGroup, de);
container = (Container) de;
}