ComponentValidatorScript createValidatorScript(ClientBehaviorContext behaviorContext, ClientValidatorBehavior behavior) {
ValidatorScriptBase validatorScript;
Collection<ValidatorDescriptor> validators = behavior.getValidators(behaviorContext);
if (!validators.isEmpty()) {
try {
ConverterDescriptor converter = behavior.getConverter(behaviorContext);
if (null != converter) {
try {
LibraryScriptFunction clientSideConverterScript = getClientSideConverterScript(
behaviorContext.getFacesContext(), converter);
validatorScript = createValidatorScript(behaviorContext, behavior, validators,