code: protected String insertContextStrings(String path) {
  
          // create a new macro resolver
          CmsMacroResolver resolver = CmsMacroResolver.newInstance();
  
          // add special mappings for macros
          resolver.addMacro("CONTEXT_NAME", OpenCms.getSystemInfo().getContextPath());
          resolver.addMacro("SERVLET_NAME", OpenCms.getSystemInfo().getServletPath());
  
          // resolve the macros
          return resolver.resolveMacros(path);
      }
docs: Substitutes the ${CONTEXT_NAME} and ${SERVLET_NAME} in a path with the real values.<p>
  
  @param path the path to substitute
  @return path with real context values