code: private void validateSingleAliasRow(CmsObject cms, CmsAliasTableRow row) {
  
          Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
          if (row.getStructureId() == null) {
              String path = row.getResourcePath();
              try {
                  CmsResource resource = cms.readResource(path, CmsResourceFilter.ALL);
                  row.setStructureId(resource.getStructureId());
                  if (row.getOriginalStructureId() == null) {
                      row.setOriginalStructureId(resource.getStructureId());
                  }
              } catch (CmsException e) {
                  row.setPathError(messageResourceNotFound(locale));
                  m_hasErrors = true;
              }
          }
          if (!CmsAlias.ALIAS_PATTERN.matcher(row.getAliasPath()).matches()) {
              row.setAliasError(messageInvalidAliasPath(locale));
              m_hasErrors = true;
          }
      }
docs: Validates a single alias row.<p>
  
  @param cms the current CMS context
  @param row the row to validate