This will throw an NPE if there no such entry. (Did you test this?) I think what is wanted is

```
Localizable shortName = labelMap.get(item.getClass().getSimpleName());
return shortName != null ? shortName.toString() : item.getPronoun();
```