FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
if (UIComponentTag.isValueReference(_validatorId))
{
ValueBinding vb = facesContext.getApplication().createValueBinding(_validatorId);
return application.createValidator((String)vb.getValue(facesContext));
}
else
{
return application.createValidator(_validatorId);
}