code: protected byte[] getReportContents(CmsPublishJobFinished publishJob) throws CmsException {
  
          byte[] result = null;
          CmsDbContext dbc = m_dbContextFactory.getDbContext();
          try {
              result = m_driverManager.readPublishReportContents(dbc, publishJob.getPublishHistoryId());
          } catch (CmsException e) {
              dbc.rollback();
              LOG.error(e.getLocalizedMessage(), e);
              throw e;
          } finally {
              dbc.clear();
          }
          return result;
      }
docs: Returns the content of the publish report assigned to the given publish job.<p>
  
  @param publishJob the published job
  @return the content of the assigned publish report
  
  @throws CmsException if something goes wrong