}
} else {
CALFeatureName featureName = metadata.getFeatureName();
ScopedEntity entity = owner.getPerspective().getWorkspace().getScopedEntity(featureName);
if (metadata.getDisplayName() != null) {
return metadata.getDisplayName();
} else if (entity == null) {
return address.toString();
} else if (namingPolicy != null) {
return entity.getAdaptedName(namingPolicy);
} else {
return entity.getName().getQualifiedName();
}
}
return address.toString();
}