printError(ex);
}
try {
System.out.println("Canonicalizing with RFC 2396 rules...");
rfc2396UrlSerialized = new RFC2396Canonicalizer().canonicalize(url).toString();
if (rfc3986UrlSerialized.equals(rfc2396UrlSerialized)) {
System.out.println("\tResult identical to RFC 3986 rules");
} else {
printResult(url);
}