code: public List<CmsAlias> getAliasesForStructureId(CmsObject cms, CmsUUID structureId) throws CmsException {
  
          List<CmsAlias> aliases = m_securityManager.readAliasesById(cms.getRequestContext(), structureId);
          Collections.sort(aliases, new Comparator<CmsAlias>() {
  
              public int compare(CmsAlias first, CmsAlias second) {
  
                  return first.getAliasPath().compareTo(second.getAliasPath());
              }
          });
          return aliases;
      }
docs: Gets the aliases for a given structure id.<p>
  
  @param cms the current CMS context
  @param structureId the structure id of a resource
  
  @return the aliases which point to the resource with the given structure id
  
  @throws CmsException if something goes wrong