docs: public static String substituteContextPath(String htmlContent, String context) {
  
          if (m_contextSearch == null) {
              m_contextSearch = "([^\\w/])" + context;
              m_contextReplace = "$1" + CmsStringUtil.escapePattern(CmsStringUtil.MACRO_OPENCMS_CONTEXT) + "/";
          }
          return substitutePerl(htmlContent, m_contextSearch, m_contextReplace, "g");
      }