question: boolean validate ( Set attrVals , String i18nFileName , boolean encodePassword , Map envParam ) throws SMSException { if ( ( attrVals == null ) || ( attrVals . isEmpty ( ) ) ) { return true ; } if ( ! validateType ( attrVals , envParam ) || ! validateSyntax ( attrVals , encodePassword ) ) { if ( debug . messageEnabled ( ) ) { debug . message ( "Validation Failed for attribute: " + as . getName ( ) + " value:" + attrVals + " Env Map: " + envParam ) ; } if ( i18nFileName != null ) { String [ ] args = { as . getName ( ) , i18nFileName , as . getI18NKey ( ) } ; throw ( new InvalidAttributeValueException ( IUMSConstants . UMS_BUNDLE_NAME , "sms-attribute-values-does-not-match-schema" , args ) ) ; } else { String [ ] args = { as . getName ( ) } ; throw ( new InvalidAttributeValueException ( IUMSConstants . UMS_BUNDLE_NAME , "sms-attribute-values-does-not-match-schema" , args ) ) ; } } return ( true ) ; }
target:  Validates a map of Attributes and values against Service Schema definition.