code: protected void initSessionObject() {
  
          try {
              if (!CmsStringUtil.isEmpty(getParamAction()) && !CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
                  m_resources = (List)getDialogObject();
                  // test
                  m_resources.size();
              }
          } catch (Exception e) {
              // ignore
          }
          if (m_resources == null) {
              // create a new project object
              m_resources = new ArrayList();
              try {
                  Iterator it = OpenCms.getOrgUnitManager().getResourcesForOrganizationalUnit(
                      getCms(),
                      getCms().getRequestContext().getOuFqn()).iterator();
                  while (it.hasNext()) {
                      CmsResource res = (CmsResource)it.next();
                      m_resources.add(getCms().getSitePath(res));
                  }
              } catch (CmsException e1) {
                  // should never happen
              }
          }
      }
docs: Initializes the session object to work with depending on the dialog state and request parameters.<p>