code: private String encodeURL(String url) {
          return url.startsWith("/") || url.startsWith(".") ? url : url.startsWith("web/") ? "/" + url : "/web/" + url;
      }
docs: Encodes the specified URL path, which may be absolute or relative.
  <p>
  For compressed help sets, use the web/ prefix. When using this syntax, CWF requires that the
  root folder in the jar file be named "web" with the specified path being relative to that
  folder.
  
  @param url URL to encode.
  @return The encoded URL.