add get_client to Java