The fromFoo
API in Source
is very confusing to me (and I’m not a user). I suspect it could be simplified. In particular, I think you are not wrong in wanting your use case without dipping back into the Java API.
I don’t know what the “correct” or “best” API would be.
I’m glad there is a workaround.