Fixed by moving init of the ValueHolder to a private method that is called by the constructor and readObject.
Fixed by moving init of the ValueHolder to a private method that is called by the constructor and readObject.