Add support for multithreaded case database access via Java bindings