Java Producer Provider

First pass at adding java producer functionality.  

A lot still needs to be cleaned up
Why the call to `#flatten`?