code: public void setLinkSubstitutionHandler(CmsObject cms, I_CmsLinkSubstitutionHandler linkSubstitutionHandler)
      throws CmsRoleViolationException {
  
          OpenCms.getRoleManager().checkRole(cms, CmsRole.ROOT_ADMIN);
          m_linkSubstitutionHandler = linkSubstitutionHandler;
      }
docs: Sets the internal link substitution handler.<p>
  
  @param cms an OpenCms user context that must have the permissions for role {@link CmsRole#ROOT_ADMIN}.<p>
  @param linkSubstitutionHandler the handler to set
  
  @throws CmsRoleViolationException in case the provided OpenCms user context does not have the required permissions