code: public String relative(String url)
  	{
  		try
  		{
  			final URI uri = absolute(url).build();
  
  			return new URI(null, null, uri.getPath(), uri.getQuery(), uri.getFragment()).toString();
  		}
  		catch (URISyntaxException e)
  		{
  			throw new IllegalArgumentException(e);
  		}
  	}
docs: Return only the path for a given URL
  
  @param url
  
  @return