Rewritten extension using ValidatorBuilder na metadata cache (thanks to @Majkl578)