[PDT-5181] Update java-driver version and fix errors caused by api change