(TK-108) Add support for persistent Java clients

This PR adds support for both synchronous and asynchronous persistent Java clients.
Definitely per-class.  This was just a copypasta error in the original code.