code: protected CmsPublishJobInfoBean next() {
  
          CmsPublishJobInfoBean publishJob = OpenCms.getMemoryMonitor().getFirstCachedPublishJob();
          if (publishJob != null) {
              OpenCms.getMemoryMonitor().uncachePublishJob(publishJob);
          }
          return publishJob;
      }
docs: Returns the next publish job to be published, removing it
  from the queue, or <code>null</code> if the queue is empty.<p>
  
  @return the next publish job to be published