public String getShortForm(OWLEntity entity) {
checkNotNull(entity, "entity cannot be null");
if (!(entity instanceof OWLIndividual)) {
return alternateShortFormProvider.getShortForm(entity);
}
OWLIndividual individual = (OWLIndividual) entity;
// The candidate value to be rendered, we select this based on
// ranking of annotation URI and ranking of lang (if present)
OWLObject candidateValue = null;
int lastURIMatchIndex = Integer.MAX_VALUE;
int lastLangMatchIndex = Integer.MAX_VALUE;