code: protected String createBundleLink(String bundleId, String bundlePrefix, String randomParam, String contextPath,
  			boolean isSslRequest) {
  
  		// When debug mode is on and the resource is generated the path must
  		// include a parameter
  		String path = bundleId;
  		String fullPath = null;
  		if (bundler.getConfig().isDebugModeOn()) {
  			if (bundler.getConfig().getGeneratorRegistry().isPathGenerated(bundleId)) {
  				path = PathNormalizer.createGenerationPath(bundleId, bundler.getConfig().getGeneratorRegistry(),
  						randomParam);
  			} else {
  				if (StringUtils.isNotEmpty(randomParam)) {
  					path = bundleId + "?" + randomParam;
  				}
  			}
  
  			fullPath = PathNormalizer.joinPaths(bundler.getConfig().getServletMapping(), path);
  		} else {
  
  			if (StringUtils.isNotEmpty(bundlePrefix)) {
  				fullPath = PathNormalizer.joinPaths(bundler.getConfig().getServletMapping(),
  						PathNormalizer.joinPaths(bundlePrefix, path));
  			} else {
  				fullPath = PathNormalizer.joinPaths(bundler.getConfig().getServletMapping(), path);
  			}
  		}
  
  		fullPath = RendererRequestUtils.getRenderedUrl(fullPath, bundler.getConfig(), contextPath, isSslRequest);
  
  		// allow debugOverride to pass through on the generated urls
  		if (ThreadLocalJawrContext.isDebugOverriden()) {
  			fullPath = PathNormalizer.addGetParameter(fullPath, "overrideKey",
  					bundler.getConfig().getDebugOverrideKey());
  		}
  
  		return renderLink(fullPath);
  	}
docs: Creates a link to a bundle in the page.
  
  @param bundleId
  the bundle ID
  @param bundlePrefix
  the bundle prefix
  @param randomParam
  the flag indicating if we should use randomParam
  @param contextPath
  the context path
  @param isSslRequest
  the flag indicating if it's an SSL request
  @return the link to a bundle in the page