[Java] How to get existing workflow options from a workflow stub?

@tihomir FYI, previously I was fetching options from an untyped stub as suggested here:

But I don’t think this is correct. I believe it just points to the locally given options.