code: public List<CmsAlias> getAliasesForPath(CmsObject cms, String siteRoot, String aliasPath) throws CmsException {
  
          CmsAlias alias = m_securityManager.readAliasByPath(cms.getRequestContext(), siteRoot, aliasPath);
          if (alias == null) {
              return Collections.emptyList();
          } else {
              return Collections.singletonList(alias);
          }
      }
docs: Gets the list of aliases for a path in a given site.<p>
  
  This should only return either an empty list or a list with a single element.
  
  
  @param cms the current CMS context
  @param siteRoot the site root for which we want the aliases
  @param aliasPath the alias path
  
  @return the aliases for the given site root and path
  
  @throws CmsException if something goes wrong