docs: protected void initProjectObject() {
  
          Object o = null;
  
          try {
              if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                  // edit an existing project, get the project object from database
                  m_project = getCms().readProject(new CmsUUID(getParamProjectid()));
                  m_resources = getCms().readProjectResources(m_project);
              } else {
                  // this is not the initial call, get the project object from session
                  o = getDialogObject();
                  Map map = (Map)o;
                  m_project = (CmsProject)map.get("prj");
                  // test
                  m_project.getUuid();
                  m_resources = (List)map.get("res");
                  m_resources.isEmpty();
              }
          } catch (Exception e) {
              // create a new project object
              m_project = new CmsProject();
              m_resources = new ArrayList();
              setOufqn(getCms().getRequestContext().getOuFqn());
              setUserGroup(getCms().getRequestContext().getOuFqn() + OpenCms.getDefaultUsers().getGroupUsers());
          }
      }