I have the following class factory pickSomething that creates a type based on a passed in key from a ClassMap:
pickSomething
ClassMap
class A { keya = "