public static Collection<Validator<?>> newValidators(ValidateModel validateModel) {
Collection<Validator<?>> validators = null;
if (validateModel instanceof JavaValidateModel) {
JavaValidateModel javaValidateModel = JavaValidateModel.class.cast(validateModel);
String bean = javaValidateModel.getBean();
if (bean != null) {
if (CDIUtil.lookupBeanManager() == null) {
throw ValidateMessages.MESSAGES.cdiBeanManagerNotFound();
}
Object validator = CDIUtil.lookupBean(bean);