code: public static String resolveUrl(final String baseUrl, final String relativeUrl) {
  		// Parameter check
  		if (baseUrl == null) {
  			throw new IllegalArgumentException("Base URL must not be null");
  		}
  		if (relativeUrl == null) {
  			throw new IllegalArgumentException("Relative URL must not be null");
  		}
  		final Url url = resolveUrl(parseUrl(baseUrl.trim()), relativeUrl.trim());
  
  		return url.toString();
  	}
docs: Resolves a given relative URL against a base URL. See <a
  href="http://www.faqs.org/rfcs/rfc1808.html">RFC1808</a> Section 4 for more details.
  
  @param baseUrl The base URL in which to resolve the specification.
  @param relativeUrl The relative URL to resolve against the base URL.
  @return the resolved specification.