{
java.util.ResourceBundle bundle = Contexts.isApplicationContextActive() ? //yew, just for testing!
ResourceBundle.instance() : null;
Locale locale = bundle==null ?
new Locale("DUMMY") : bundle.getLocale();
ClassValidator validator = validators.get(locale);
if (validator==null)
{
validator = bundle==null ?
new ClassValidator(beanClass) :
new ClassValidator(beanClass, bundle);
validators.put(locale, validator);
}
return validator;
}