code: public void setWorkPath(String workPath) throws CmsIllegalArgumentException {
  
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(workPath)) {
              throw new CmsIllegalArgumentException(Messages.get().container(Messages.GUI_ERR_WIDGETVALUE_EMPTY_0));
          }
          // test if it is a valid path:
          if (!m_cms.existsResource(workPath)) {
              throw new CmsIllegalArgumentException(
                  Messages.get().container(Messages.GUI_ERR_TAGREPLACE_WORKPATH_1, workPath));
          }
          m_workPath = workPath;
  
      }
docs: Sets the path under which files will be processed recursively.
  <p>
  
  @param workPath the path under which files will be processed recursively.
  
  @throws CmsIllegalArgumentException if the argument is not valid.