Code validation now as a static function - one for all languages.