Recieve return value from microflow in java

When you call a microflow in in java, you can give parameters to that microflow, but how can you retrieve the return value of that microflow back in to your java?
1 answers

See the Java API tutorial for an example of this, at

You will need to cast the return object to the type of object that the microflow returns, so either a Java type or a(n) (list of) IMendixObject(s)