docs: public CmsPublishList fillPublishList(CmsRequestContext context, CmsPublishList publishList) throws CmsException {
  
          CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
          try {
              m_driverManager.fillPublishList(dbc, publishList);
              checkPublishPermissions(dbc, publishList);
          } catch (CmsTooManyPublishResourcesException e) {
              throw e;
          } catch (Exception e) {
              if (publishList.isDirectPublish()) {
                  dbc.report(
                      null,
                      Messages.get().container(
                          Messages.ERR_GET_PUBLISH_LIST_DIRECT_1,
                          CmsFileUtil.formatResourceNames(context, publishList.getDirectPublishResources())),
                      e);
              } else {
                  dbc.report(
                      null,
                      Messages.get().container(
                          Messages.ERR_GET_PUBLISH_LIST_PROJECT_1,
                          context.getCurrentProject().getName()),
                      e);
              }
          } finally {
              dbc.clear();
          }
          return publishList;
      }