code: public synchronized List<CmsAliasImportResult> importAliases(
          CmsObject cms,
          byte[] aliasData,
          String siteRoot,
          String separator)
      throws Exception {
  
          checkPermissionsForMassEdit(cms);
          BufferedReader reader = new BufferedReader(
              new InputStreamReader(new ByteArrayInputStream(aliasData), CmsEncoder.ENCODING_UTF_8));
          String line = reader.readLine();
          List<CmsAliasImportResult> totalResult = new ArrayList<CmsAliasImportResult>();
          CmsAliasImportResult result;
          while (line != null) {
              result = processAliasLine(cms, siteRoot, line, separator);
              if (result != null) {
                  totalResult.add(result);
              }
              line = reader.readLine();
          }
          return totalResult;
      }
docs: Imports alias CSV data.<p>
  
  @param cms the current CMS context
  @param aliasData the alias data
  @param siteRoot the root of the site into which the alias data should be imported
  @param separator the field separator which is used by the imported data
  @return the list of import results
  
  @throws Exception if something goes wrong