Remove these readFields and write methods. They're only necessary if you have new state to persist other than your children, which I don't believe you need.