protected T findValidationContext ( List < ValidationContext > validationContexts ) { for ( ValidationContext validationContext : validationContexts ) { if ( getRequiredValidationContextType ( ) . isInstance ( validationContext ) ) { return ( T ) validationContext ; } } return null ; }
Finds the message validation context that is most appropriate for this validator implementation .