Allow overriding getShortName()

This will allow the key for entries in a generated discriminator map to be customised. E.g. to include namespace