RUBY-698 Refactor to not use extra variable in java ext deserialization