Update Java API for bug:29501 transaction change