How do I create a subobject from a variable class

Thats not what im asking, I want the Class used in CreateDefaultSubobject to come from a variable, or a different way to add the subobject where the class can be dynamic.