code: public static String getRenderedUrl(String url, JawrConfig jawrConfig, String contextPath, boolean sslRequest) {
  
  		String contextPathOverride = getContextPathOverride(sslRequest, jawrConfig);
  		// If the contextPathOverride is not null and we are in production mode,
  		// or if we are in debug mode but we should use the contextPathOverride
  		// even in debug mode
  		// then use the contextPathOverride
  
  		String renderedUrl = url;
  		if (contextPathOverride != null
  				&& ((jawrConfig.isDebugModeOn() && jawrConfig.isUseContextPathOverrideInDebugMode())
  						|| !jawrConfig.isDebugModeOn())) {
  
  			String override = contextPathOverride;
  			// Blank override, create url relative to path
  			if ("".equals(override)) {
  				if (url.startsWith("/")) {
  					renderedUrl = renderedUrl.substring(1);
  				}
  			} else {
  				renderedUrl = PathNormalizer.joinPaths(override, renderedUrl);
  			}
  		} else {
  			renderedUrl = PathNormalizer.joinPaths(contextPath, renderedUrl);
  		}
  
  		return renderedUrl;
  	}
docs: Renders the URL taking in account the context path, the jawr config
  
  @param url
  the URL
  @param jawrConfig
  the jawr config
  @param contextPath
  the context path
  @param sslRequest
  the flag indicating if it's an SSL request or not
  @return the new URL