code: public static byte[] getAsByteArray(TransactionChangesLog dataChangesLog) throws IOException
     {
        ByteArrayOutputStream os = new ByteArrayOutputStream();
        ObjectOutputStream oos = new ObjectOutputStream(os);
        oos.writeObject(dataChangesLog);
  
        byte[] bArray = os.toByteArray();
        return bArray;
     }
docs: getAsByteArray. Make the array of bytes from ChangesLog.
  
  @param dataChangesLog
  the ChangesLog with data
  @return byte[] return the serialized ChangesLog
  @throws IOException
  will be generated the IOException