Right now write hook support in the Java driver is incomplete. There are no write hook commands, and the command make update-driver, which you run in the directory drivers/java, will add the setWriteHook and addWriteHook term types (but not driver commands). I'm 99% sure we need to add the commands to drivers/java/term_info.json.