code: private void computePublishProject() {
  
          String projectId = getParamProjectid();
          CmsUUID id;
          if (CmsStringUtil.isEmptyOrWhitespaceOnly(projectId)) {
              // projectid not found in request parameter,
              id = getCms().getRequestContext().getCurrentProject().getUuid();
              setParamProjectname(getCms().getRequestContext().getCurrentProject().getName());
              setParamProjectid("" + id);
          } else {
              id = new CmsUUID(projectId);
              try {
                  setParamProjectname(getCms().readProject(id).getName());
              } catch (CmsException e) {
                  LOG.error(Messages.get().getBundle().key(Messages.LOG_SET_PROJECT_NAME_FAILED_0), e);
              }
          }
      }
docs: Determine the right project id and name if no request parameter "projectid" is given.<p>