code: public void write(ObjectWriter out, PlainChangesLog pcl) throws IOException
     {
        // write id
        out.writeInt(SerializationConstants.PLAIN_CHANGES_LOG_IMPL);
  
        out.writeInt(pcl.getEventType());
        out.writeString(pcl.getSessionId());
  
        List<ItemState> list = pcl.getAllStates();
  
        int listSize = list.size();
        out.writeInt(listSize);
        ItemStateWriter wr = new ItemStateWriter();
        for (int i = 0; i < listSize; i++)
        {
           wr.write(out, list.get(i));
        }
  
     }
docs: Write PlainChangesLog data.
  
  @param out
  ObjectWriter
  @param pcl
  PlainChangesLog ojbect
  @throws IOException
  if any Exception is occurred