* @param clazz The class for which the default configuration should be loaded.
* @return The default validation configuration of the given class.
*/
protected BeanValidationConfiguration loadDefaultConfiguration(Class clazz) {
String fileName = createDefaultConfigurationFileName(clazz);
Resource resource = new ClassPathResource(fileName, clazz);
if (resource.exists()) {
Map configurationByClass = loadConfigurations(resource);
this.configurationByClass.putAll(configurationByClass);
return (BeanValidationConfiguration) configurationByClass.get(clazz);
}
logger.warn("Could not find the default validation configuration for class '" + clazz.getName() + "'");