// check for shortcut status if necessary
if (!checkShortcut || isShortcut(s) == shortcutRequired) {
EObject obj = s.resolveSemanticElement();
if (objectClass.isInstance(obj)) {
// check containing feature name
ENamedElement e = (ENamedElement) obj;
if (name == null || (e.getName() != null && e.getName().equals(name))) {
if (containingFeature == null || containingFeature.equals(obj.eContainingFeature())) {
assertNotNull(s);
return s;
}
}
found += e.getName() + "[" + obj.eContainingFeature() + "],";
}
}
}
}