*/
@VisibleForTesting
int validateUrl(String urlString, ResourceBundle bundle)
throws UrlConfigurationException {
try {
UrlValidator validator = new UrlValidator();
validator.setRequireFullyQualifiedHostNames(true);
return validator.validate(urlString);
} catch (UrlValidatorException e) {
// FIXME: The Not found message is confusing with an error about
// fully-qualified host names. I think the validator should
// throw a different exception in that case, and we should
// provide a different message.