code: protected void onFinishPublishJob(CmsPublishJobRunning publishJob) {
  
          try {
              cleanupEmptyWorkflowProjects(null);
          } catch (CmsException e) {
              LOG.error(e.getLocalizedMessage(), e);
          }
      }
docs: Handles finished publish jobs by removing projects of resources in the publish job if they are empty workflow projects.<p>
  
  @param publishJob the finished published job