docs: public String buildConfirmation() {
  
          StringBuffer result = new StringBuffer(512);
  
          result.append("<p><div id='conf-msg'>\n");
          if (!isDirectPublish()) {
              result.append(key(Messages.GUI_PUBLISH_PROJECT_CONFIRMATION_1, new Object[] {getProjectname()}));
          } else {
              boolean isFolder = false;
              if (!isMultiOperation()) {
                  try {
                      isFolder = getCms().readResource(getParamResource(), CmsResourceFilter.ALL).isFolder();
                  } catch (CmsException e) {
                      // ignore
                  }
              }
              if (isMultiOperation() || isFolder || (hasSiblings() && hasCorrectLockstate())) {
                  result.append(key(Messages.GUI_PUBLISH_MULTI_CONFIRMATION_0));
              } else {
                  result.append(key(Messages.GUI_PUBLISH_CONFIRMATION_0));
              }
          }
          result.append("\n</div></p>\n");
          return result.toString();
      }