code: protected byte[] internalSerializePublishList(CmsPublishList publishList) throws IOException {
  
          // serialize the publish list
          ByteArrayOutputStream bout = new ByteArrayOutputStream();
          ObjectOutputStream oout = new ObjectOutputStream(bout);
          oout.writeObject(publishList);
          oout.close();
          return bout.toByteArray();
      }
docs: Serialize publish list to write it as byte array to the database.<p>
  
  @param publishList the publish list
  @return byte array containing the publish list data
  @throws IOException if something goes wrong