there's reflection if you wanted to go this route....
# announcements
s
there's reflection if you wanted to go this route... you'd need to get the companion object, find the creation method, invoke it and cast to T and return, the above obviously doesnt work but its something to explore