code: private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException {
          ObjectInputStream.GetField getField = s.readFields();
  
          version = getField.get("version", 1);
          resourceAdapterKey = (String) getField.get("resourceAdapterKey", null);
      }
docs: Overrides the default deserialization.