float maxY=0;
for (BPMNDiagram bpmnDiagram : BPMNDiagramList) {
for (DiagramElement diagramElement : bpmnDiagram.getPlane().getPlaneElement()) {
if (diagramElement instanceof BPMNShape) {
BPMNShapeImpl bpmnShape = (BPMNShapeImpl) diagramElement;
org.eclipse.emf.ecore.impl.BasicEObjectImpl sssBaseElementImpl=(org.eclipse.emf.ecore.impl.BasicEObjectImpl)bpmnShape.getBpmnElement();
String idString=sssBaseElementImpl.eProxyURI().fragment();
BaseElement dd=((DefinitionsBehavior)myWeb).getElement(idString);
if (bpmnShape.getBounds().getX() + bpmnShape.getBounds().getWidth() > maxX) {
maxX = bpmnShape.getBounds().getX() + bpmnShape.getBounds().getWidth();
}
if (bpmnShape.getBounds().getY() + bpmnShape.getBounds().getHeight() > maxY) {
maxY = bpmnShape.getBounds().getY() + bpmnShape.getBounds().getHeight();
}
if (dd instanceof StartEvent) {