List<String> lines = FileUtils.readLines(new File(args[0]));
BaseUrlNormalizer urlNormalizer = new SimpleUrlNormalizer();
for (String url : lines) {
curUrl = url;
String normalized = urlNormalizer.normalize(curUrl);
if (!normalized.equalsIgnoreCase(curUrl)) {
System.out.println(curUrl + " ==> " + normalized);
}
}
} catch (Throwable t) {