I am looking for a way to do the following:
The user can create an Object of Concept 'A'. 'A' contains a path to production code. This can be an expression which can potentially be everything - even if it's not returning anything.
I need to extract the class from this 'path to production code'. Just like a dynamic type system language.
So my question is: How to achieve this and how to add these 'extracted classes' into the imports, so that the model contains it and it's generated into the java file?