}
protected String getText(Object obj) {
String text = (obj instanceof AbstractRequirement ? ((AbstractRequirement)obj).getText() : null);
if (obj instanceof JexResource) {
JexResource res = (JexResource)obj;
Exercise ex = res.getExercise();
text = (ex != null ? getText(ex) : res.getURI().toString());
} else if (obj instanceof Exercise) {
Resource res = ((Exercise) obj).eResource();
String exText = (res != null ? res.getURI().toString() : null);
if (text != null && exText != null) {
exText = exText + ": " + text;
}
text = exText;
} else if (obj instanceof ExercisePart) {