String newName = CommonUtils.replaceText(addr, "/", "");
newName = CommonUtils.replaceText(newName, "http:", "");
newName = CommonUtils.replaceText(newName, "www.", "");
newName = CommonUtils.replaceText(newName, ".", "");
newName = CommonUtils.replaceText(newName, "?", "");
<BUG>newName = CommonUtils.replaceText(newName, "&", "");
try {
newName = newName.substring(0,16) + ".html";
} catch(IndexOutOfBoundsException ignore){
return newName + ".html";
}
return newName;</BUG>
}

String newName = CommonUtils.replaceText(addr, "/", "");
newName = CommonUtils.replaceText(newName, "http:", "");
newName = CommonUtils.replaceText(newName, "www.", "");
newName = CommonUtils.replaceText(newName, ".", "");
newName = CommonUtils.replaceText(newName, "?", "");
newName = CommonUtils.replaceText(newName, "&", "");
return newName.substring(0, Math.min(16, newName.length())) + ".html";
}
