if (module.getValidationConfig() != null) {
return;
}
URL url = getUrl(module, "validation.xml");
if (url != null) {
ValidationConfigType validationConfigType;
try {
validationConfigType = JaxbOpenejb.unmarshal(ValidationConfigType.class, url.openStream(), false);
module.setValidationConfig(validationConfigType);
} catch (Exception e) {
logger.warning("can't read " + url.toString() + " to construct a validation factory, it will be ignored");