Extract checking serialVersionUID to its own protected method so it can
be overridden to do nothing