private function manageSelectDocument(&$params, &$dmsLoader, &$manageCategory, &$arrMessages, &$blnShowStart)
  {
    $params->loadRootCategory = true; // get complete path to root, for checking inherited access rights
    $params->loadAccessRights = true;
    $params->loadDocuments = true;
    $category = $dmsLoader->loadCategory($manageCategory, $params);
    
    if (!$category->isManageableForCurrentMember())
    {
      $arrMessages['errors'][] = $GLOBALS['TL_LANG']['DMS']['ERR']['manage_document_not_allowed'];
      $blnShowStart = true;
    }
    else if (!$category->hasDocuments())
    {
      $arrMessages['errors'][] = $GLOBALS['TL_LANG']['DMS']['ERR']['manage_document_category_empty'];
      $blnShowStart = true;
    }
    else
    {
      $this->Template = new \FrontendTemplate("mod_dms_mgmt_manage_document_select");
      $this->Template->setData($this->arrData);
      
      $this->Template->category = $category;
      
      $blnShowStart = false;
    }
  }