class UrlValidator extends Validator<String> {

    @Override
    public boolean execute(String content) {
        if (StringUtils.isBlank(content)) {
            return false;
        }
        String[] schemes = {"http", "https"};
        org.apache.commons.validator.UrlValidator urlValidator =
            new org.apache.commons.validator.UrlValidator(schemes, org.apache.commons.validator.UrlValidator.ALLOW_2_SLASHES);

        if (content.startsWith("http")) {
            return urlValidator.isValid(content);
        }

        return execute("http://www.mock.com/" + content);
    }

}