Split the FormValidationScriptGenerator:generate method into two methods to simplify customization