HtmlValidator validator = constructor.newInstance(component);
HtmlValidator validator = constructor.newInstance(inputComponent);
    protected HtmlValidator getValidator(MetaSlot slot, HtmlSimpleValueComponent component) {        Class<HtmlValidator> validatorType = slot.getValidator();        if (validatorType == null) {            return null;        }        Constructor<HtmlValidator> constructor;        try {            constructor = validatorType.getConstructor(new Class[] { Validatable.class });            HtmlValidator validator = constructor.newInstance(component);            RenderUtils.setProperties(validator, slot.getValidatorProperties());                        return validator;        } catch (Exception e) {            logger.warn("could not create validator '" + validatorType.getName() + "' for slot '"                    + slot.getName() + "': " + e);            return null;        }    }