...Because the getName signature clashes. Should probably rename to getKey. Workaround is to use a sealed class.