code: public static boolean isPrefixOf(URI prefix, URI uri) {
  		if (prefix.scheme() == null || !prefix.scheme().equals(uri.scheme()))
  			return false;
  		String[] prefixSeg = prefix.segments();
  		String[] uriSeg = uri.segments();
  		if (prefixSeg.length == 0 || uriSeg.length == 0)
  			return false;
  		if (!prefix.hasTrailingPathSeparator())
  			return false;
  		if (uriSeg.length < prefixSeg.length - 1)
  			return false;
  		for (int i = 0; i < prefixSeg.length - 1; i++)
  			if (!uriSeg[i].equals(prefixSeg[i]))
  				return false;
  		return true;
  	}
docs: A URI is a prefix of another URI if:
  <br/>
  <ul>
  <li>Both have the same scheme</li>
  <li>The prefix ends with a trailing separator</li>
  <li>The segments of both URIs match up to the prefix's length</li>
  </ul>