// If there's no message-resources declared for the validation message, we do this here.
// However, we don't install messages if they have been declared in the default module
// or the module attribute is already in use.
String bundle = I18nSupport.getInstance(context).resolveBundle("calyxo-forms-validators");
if (context.getAttribute(bundle) == null) { // do not overwrite attribute in use
MessageResourcesConfig messages = moduleConfig.findMessageResourcesConfig(bundle);
if (messages == null) { // messages might be declared in the default module
ModuleConfig defaultConfig = ModuleUtils.getInstance().getModuleConfig("", servlet.getServletContext());
if (moduleConfig != defaultConfig && defaultConfig != null) {
messages = defaultConfig.findMessageResourcesConfig(bundle);
}