code: private void saveProject() {
  
          CmsObject cms = A_CmsUI.getCmsObject();
          try {
              m_project.setDescription(m_fieldDescription.getValue());
              m_project.setGroupId(cms.readGroup(m_fieldUser.getValue()).getId());
              m_project.setManagerGroupId(cms.readGroup(m_fieldManager.getValue()).getId());
              m_project.setDeleteAfterPublishing(m_fieldDeleteAfterPublish.getValue().booleanValue());
              cms.writeProject(m_project);
              updateProjectResources();
          } catch (Throwable t) {
              CmsErrorDialog.showErrorDialog(t);
          }
      }
docs: Saves an existing project.<p>