code: public static String joinPaths(String prefix, String path) {
  
  		String joinedPath = null;
  		if (prefix.startsWith(JawrConstant.HTTP_URL_PREFIX) || prefix.startsWith(JawrConstant.HTTPS_URL_PREFIX)
  				|| prefix.startsWith("//")) {
  			joinedPath = joinDomainToPath(prefix, path);
  		} else {
  
  			String normalizedPrefix = PathNormalizer.normalizePath(prefix);
  
  			StringBuilder sb = new StringBuilder(JawrConstant.URL_SEPARATOR);
  			if (!"".equals(normalizedPrefix))
  				sb.append(normalizedPrefix).append(JawrConstant.URL_SEPARATOR);
  			sb.append(PathNormalizer.normalizePath(path));
  			joinedPath = sb.toString();
  		}
  
  		return joinedPath;
  	}
docs: Normalizes two paths and joins them as a single path.
  
  @param prefix
  the path prefix
  @param path
  the path
  @return the joined path