private Scenario getDefaultScenario(Definitions def) {
if(def.getRelationships() != null && def.getRelationships().size() > 0) {
// current support for single relationship
Relationship relationship = def.getRelationships().get(0);
for(ExtensionAttributeValue extattrval : relationship.getExtensionValues()) {
FeatureMap extensionElements = extattrval.getValue();
@SuppressWarnings("unchecked")
List<BPSimDataType> bpsimExtension = (List<BPSimDataType>) extensionElements.get(BpsimPackage.Literals.DOCUMENT_ROOT__BP_SIM_DATA, true);
if(bpsimExtension != null && bpsimExtension.size() > 0) {
BPSimDataType bpmsim = bpsimExtension.get(0);
if(bpmsim.getScenario() != null && bpmsim.getScenario().size() > 0) {
return bpmsim.getScenario().get(0);
}