code: private void createProject() {
  
          CmsObject cms = A_CmsUI.getCmsObject();
          try {
              String name = "/";
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_fieldOU.getValue())) {
                  name = CmsStringUtil.joinPaths(name, m_fieldOU.getValue());
              }
              if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_fieldName.getValue())) {
                  name = CmsStringUtil.joinPaths(name, m_fieldName.getValue());
              } else {
                  name = CmsStringUtil.joinPaths(name, "/");
              }
  
              m_project = cms.createProject(
                  name,
                  m_fieldDescription.getValue(),
                  m_fieldUser.getValue(),
                  m_fieldManager.getValue(),
                  m_fieldDeleteAfterPublish.getValue().booleanValue()
                  ? CmsProject.PROJECT_TYPE_TEMPORARY
                  : CmsProject.PROJECT_TYPE_NORMAL);
              updateProjectResources();
  
          } catch (Throwable t) {
              CmsErrorDialog.showErrorDialog(t);
          }
      }
docs: Creates a new project.<p>