.getInstance(facesContext.getExternalContext()) .getClientValidatorsRegistry();
.getInstance(facesContext).getClientValidatorsRegistry();
    protected boolean installValidator(IComponentRenderContext renderContext,            String validator) {        Iterator it = new CommandParserIterator(validator);        if (it.hasNext() == false) {            return false;        }        CommandParserIterator.ICommand command = (ICommand) it.next();        if (it.hasNext()) {            throw new FacesException(                    "Validator does not support multiple expression.");        }        FacesContext facesContext = renderContext.getFacesContext();        IClientValidatorsRegistry clientValidatorManager = RcfacesContext                .getInstance(facesContext.getExternalContext())                .getClientValidatorsRegistry();        if (clientValidatorManager == null) {            throw new FacesException(                    "Can not get descriptorManager from faces context !");        }        IClientValidatorDescriptor validatorDescriptor = clientValidatorManager                .getClientValidatorById(facesContext, command.getName());        if (validatorDescriptor == null) {            throw new FacesException("Can not find validator '"                    + command.getName() + "' for component '"                    + renderContext.getComponentId() + "' !");        }        renderContext.setAttribute(VALIDATOR_COMMAND, command);        renderContext.setAttribute(VALIDATOR_DESCRIPTOR, validatorDescriptor);        return true;    }