* @return The validation result.
*/
public FormValidationResult validate() {
DefaultFormValidationResult result = new DefaultFormValidationResult();
for (Map.Entry<String, FormField> entry : formFields.fieldByKey.entrySet()) {
FormField field = entry.getValue();
if (field.isEnabled()) {
ValidationResult fieldResult = entry.getValue().validate();
result.merge(field.getKey(), fieldResult);
}
}
if (formValidator != null) {
ValidationResult generalValidationResult = formValidator.validate(this);
if (!generalValidationResult.isValid()) {