code: public static String getHistoryLink(CmsObject cms, CmsUUID structureId, String version) {
  
          String resourcePath;
          CmsResource resource;
          try {
              resource = cms.readResource(structureId, CmsResourceFilter.ALL);
              resourcePath = resource.getRootPath();
          } catch (CmsException e) {
              throw new CmsRuntimeException(e.getMessageContainer(), e);
          }
          StringBuffer link = new StringBuffer();
          link.append(CmsHistoryResourceHandler.HISTORY_HANDLER);
          link.append(resourcePath);
          link.append('?');
          link.append(CmsHistoryResourceHandler.PARAM_VERSION);
          link.append('=');
          link.append(CmsHistoryListUtil.getVersion("" + version));
          return link.toString();
      }
docs: Returns the link to an historical file.<p>
  
  @param cms the cms context
  @param structureId the structure id of the file
  @param version the version number of the file
  
  @return the link to an historical file