docs: public String getOnlineLink(CmsObject cms, String resourceName, boolean forceSecure) {
  
          String result = "";
          try {
              CmsProject currentProject = cms.getRequestContext().getCurrentProject();
              try {
                  cms.getRequestContext().setCurrentProject(cms.readProject(CmsProject.ONLINE_PROJECT_ID));
                  result = substituteLinkForUnknownTarget(cms, resourceName, forceSecure);
                  result = appendServerPrefix(cms, result, resourceName, false);
              } finally {
                  cms.getRequestContext().setCurrentProject(currentProject);
              }
          } catch (CmsException e) {
              // should never happen
              result = e.getLocalizedMessage();
              if (LOG.isErrorEnabled()) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
          return result;
      }