final PropertiesTestOwner propertiesTestOwner = this.<PropertiesTestOwner>ancestor(eObject, PropertiesTestOwner.class);
if ((propertiesTestOwner instanceof StateFunction)) {
return XbaseScopeProvider.IT.toString();
} else {
if ((propertiesTestOwner instanceof ObjectTest)) {
final Instance instance = ((ObjectTest) propertiesTestOwner).getInstance();
boolean _notEquals = (!Objects.equal(instance, null));
if (_notEquals) {
return instance.getName();
}
}
}
JexTestCase _ancestor = this.<JexTestCase>ancestor(eObject, JexTestCase.class);
final EList<Instance> instances = _ancestor.getInstances();
String _xifexpression = null;
boolean _isEmpty = instances.isEmpty();
if (_isEmpty) {
String _defaultInstanceName = this.defaultInstanceName(eObject);
_xifexpression = _defaultInstanceName;
} else {
String _xifexpression_1 = null;
int _size = instances.size();
boolean _equals = (_size == 1);
if (_equals) {
Instance _head = IterableExtensions.<Instance>head(instances);
String _name = _head.getName();
_xifexpression_1 = _name;
} else {
_xifexpression_1 = null;
}
_xifexpression = _xifexpression_1;