Java impl of JSON serialization transfers static members.