Added the possibility of receiving the instance with a different overload
of buildRules in SimpleValidator.