code: public void writeExternal(ObjectOutput out) throws IOException
     {
        out.writeInt(eventType);
  
        byte[] buff = sessionId.getBytes(Constants.DEFAULT_ENCODING);
        out.writeInt(buff.length);
        out.write(buff);
  
        int listSize = items.size();
        out.writeInt(listSize);
        for (int i = 0; i < listSize; i++)
        {
           out.writeObject(items.get(i));
        }
  
        if (pairId != null)
        {
           out.writeInt(NOT_NULL_VALUE);
           buff = pairId.getBytes(Constants.DEFAULT_ENCODING);
           out.writeInt(buff.length);
           out.write(buff);
        }
        else
        {
           out.writeInt(NULL_VALUE);
        }
     }
docs: ------------------ [ BEGIN ] ------------------