}
}
}
private void handleLane(BaseElement bpmnElement, AddContext context, BPMNShape shape) {
BaseElement parent = (BaseElement) ((Lane) bpmnElement).eContainer().eContainer();
ContainerShape cont = diagram;
// find the process this lane belongs to
for (BaseElement be : elements.keySet()) {
if (be instanceof Participant) {
Process processRef = ((Participant) be).getProcessRef();
if (processRef != null && parent.getId().equals(processRef.getId())) {
cont = (ContainerShape) elements.get(be);
break;
}
} else if (be instanceof Process) {
if (be.getId().equals(parent.getId())) {
cont = (ContainerShape) elements.get(be);
break;
}
} else if (be instanceof Lane) {
if (be.getId().equals(parent.getId())) {
cont = (ContainerShape) elements.get(be);
break;
}
}
}