@Override
public void validate(String value, Locale locale, ValidationContext cx) throws OptionValueValidationException {
try {
IPv4Restriction restriction = IPv4Restriction.parseRestrictionString(value);
}
catch (Exception e) {
throw new OptionValueValidationException("No valid restriction string: " + value + ". Use single IP address to specify host, \"IP-IP\" to specify range and \"IP/Netmask\" to specify network");
}