'Returns a child validator of this one.
:param value:
Can be a validator type string, an already created Validator instance,
or a function that returns a validator instance.
:param kwargs:
Keyword arguments are passed on to validator init if a new validator is created.'

def get_validator(self, value, **kwargs):

    if isinstance(value, Validator):
        value.add_parent(self)
        return value
    elif callable(value):
        raise ValueError(u'lazy    validators    are    no    longer    supported.    Upgrade    plugin    to    use    new    schema    validation.')
    kwargs[u'parent'] = self
    return factory(value, **kwargs)
