code: public boolean addNextItem() {
  
          if (m_itemIndex >= m_publishResources.size()) {
              return false;
          }
          CmsPublishResource res = m_publishResources.get(m_itemIndex);
          m_itemIndex += 1;
          if (m_showProblemsOnly && (!CmsPublishDataModel.hasProblems(res))) {
              return false;
          } else {
              addItem(res);
              return true;
          }
      }
docs: Adds the list item for the next publish resource and returns  true on success, while
  also incrementing the internal item index.<p>
  
  @return true if an item was added