docs: private String rewriteUri(String internalUri) {
  
          // if an object wrapper is used, rewrite the uri
          if (m_cms != null) {
              Object obj = m_cms.getRequestContext().getAttribute(CmsObjectWrapper.ATTRIBUTE_NAME);
              if (obj != null) {
                  CmsObjectWrapper wrapper = (CmsObjectWrapper)obj;
                  return wrapper.restoreLink(internalUri);
              }
          }
  
          return internalUri;
      }