docs: protected void initOrgUnitObject() {
  
          try {
              if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                  // edit an existing ou, get the ou object from database
                  CmsOrganizationalUnit orgunit = OpenCms.getOrgUnitManager().readOrganizationalUnit(
                      getCms(),
                      getParamOufqn());
                  m_orgUnitBean = new CmsOrgUnitBean();
                  if (!isNewOrgUnit()) {
                      m_orgUnitBean.setName(orgunit.getName());
                      m_orgUnitBean.setDescription(orgunit.getDescription(getLocale()));
                      m_orgUnitBean.setParentOu(orgunit.getParentFqn());
                      m_orgUnitBean.setFqn(orgunit.getName());
                      m_orgUnitBean.setNologin(orgunit.hasFlagHideLogin());
                      m_orgUnitBean.setWebusers(orgunit.hasFlagWebuser());
                      if (orgunit.getParentFqn() != null) {
                          m_orgUnitBean.setParentOuDesc(
                              OpenCms.getOrgUnitManager().readOrganizationalUnit(
                                  getCms(),
                                  orgunit.getParentFqn()).getDescription(getLocale())
                                  + " ("
                                  + CmsOrganizationalUnit.SEPARATOR
                                  + orgunit.getParentFqn()
                                  + ")");
                      }
                  } else {
                      m_orgUnitBean.setParentOu(orgunit.getName());
                      m_orgUnitBean.setParentOuDesc(
                          orgunit.getDescription(getLocale())
                              + " ("
                              + CmsOrganizationalUnit.SEPARATOR
                              + orgunit.getName()
                              + ")");
                  }
                  List<CmsResource> resources = OpenCms.getOrgUnitManager().getResourcesForOrganizationalUnit(
                      getCms(),
                      orgunit.getName());
                  setResourcesInBean(m_orgUnitBean, resources);
              } else {
                  // this is not the initial call, get the ou object from session
                  m_orgUnitBean = (CmsOrgUnitBean)getDialogObject();
                  // test
                  m_orgUnitBean.getName();
              }
          } catch (Exception e) {
              // create a new ou object
              m_orgUnitBean = new CmsOrgUnitBean();
              m_orgUnitBean.setParentOu(getParamOufqn());
          }
      }