code: public void writePublishReport(CmsDbContext dbc, CmsPublishJobInfoBean publishJob) throws CmsException {
  
          CmsPublishReport report = (CmsPublishReport)publishJob.removePublishReport();
  
          if (report != null) {
              getProjectDriver(dbc).writePublishReport(dbc, publishJob.getPublishHistoryId(), report.getContents());
          }
      }
docs: Writes the publish report for a publish job.<p>
  
  @param dbc the current database context
  @param publishJob the publish job
  @throws CmsException if something goes wrong