private FieldValidator lookupValidatorInRegistry ( String validationMetaDataName ) { Map < String , Object > applicationContext = ValidationContext . get ( ) . getObjectRegistry ( ) ; Exceptions . requireNonNull ( applicationContext ) ; return ( FieldValidator ) applicationContext . get ( "/org/boon/validator/" + validationMetaDataName ) ; }
This method looks up the validator in the registry .