private void applyValidationMetaDataPropertiesToValidator ( ValidatorMetaData metaData , FieldValidator validator ) { Map < String , Object > properties = metaData . getProperties ( ) ; ifPropertyBlankRemove ( properties , "detailMessage" ) ; ifPropertyBlankRemove ( properties , "summaryMessage" ) ; BeanUtils . copyProperties ( validator , properties ) ; }
This method applies the properties from the validationMetaData to the validator uses Spring s BeanWrapperImpl .