code: @Override
  	public boolean validate(final Problems problems, final String compName, final String model) {
  		try {
  			final URL url = new URL(model);
  			// java.net.url does not require US-ASCII host names,
  			// but the spec does
  			final String host = url.getHost();
  			if (!"".equals(host)) { // NOI18N
  				return new ValidHostNameOrIPValidator(true).validate(problems, compName, host);
  			}
  			final String protocol = url.getProtocol();
  			if ("mailto".equals(protocol)) { // NOI18N
  				String emailAddress = url.toString().substring("mailto:".length()); // NOI18N
  				emailAddress = emailAddress == null ? "" : emailAddress;
  				return new EmailAddressValidator().validate(problems, compName, emailAddress);
  			}
  			return true;
  		} catch (final MalformedURLException e) {
  			final String problem = ValidationBundle.getMessage(UrlValidator.class, "URL_NOT_VALID", model); // NOI18N
  			problems.add(problem);
  			return false;
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see
  com.fs.commons.desktop.validation.Validator#validate(com.fs.commons.desktop.
  validation.Problems, java.lang.String, java.lang.Object)