Creates a new validator associated with a specified validation context object.
A smart pointer to the created validator.